mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
Fixed small typos (#1588)
This commit is contained in:
parent
b6166c9669
commit
a007caef5c
@ -3216,7 +3216,7 @@ console.log(response.request().redirectedFrom()); // null
|
||||
```
|
||||
|
||||
#### request.redirectedTo()
|
||||
- returns: <?[Request]> New request issued by the browser iff the server responded with redirect.
|
||||
- returns: <?[Request]> New request issued by the browser if the server responded with redirect.
|
||||
|
||||
This method is the opposite of [request.redirectedFrom()](#requestredirectedfrom):
|
||||
```js
|
||||
|
@ -528,7 +528,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI
|
||||
await page.setContent(`<div> "yo <div></div>ya</div>`);
|
||||
expect(await playwright.selectors._createSelector('text', await page.$('div'))).toBe('" \\"yo "');
|
||||
});
|
||||
it('should be case sensitive iff quotes are specified', async({page}) => {
|
||||
it('should be case sensitive if quotes are specified', async({page}) => {
|
||||
await page.setContent(`<div>yo</div><div>ya</div><div>\nye </div>`);
|
||||
expect(await page.$eval(`text=yA`, e => e.outerHTML)).toBe('<div>ya</div>');
|
||||
expect(await page.$(`text="yA"`)).toBe(null);
|
||||
|
Loading…
Reference in New Issue
Block a user