Skip to content

Commit

Permalink
Fixed small typos (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
slang25 authored Mar 30, 2020
1 parent b6166c9 commit a007cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/queryselector.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a007cae

Please sign in to comment.