Fixed small typos (#1588)

This commit is contained in:
Stuart Lang 2020-03-30 17:03:13 +01:00 committed by GitHub
parent b6166c9669
commit a007caef5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);