From a007caef5ccef978f82da4b5a5206af16fe6cbe8 Mon Sep 17 00:00:00 2001 From: Stuart Lang Date: Mon, 30 Mar 2020 17:03:13 +0100 Subject: [PATCH] Fixed small typos (#1588) --- docs/api.md | 2 +- test/queryselector.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 8d04da6928..ad48ceb914 100644 --- a/docs/api.md +++ b/docs/api.md @@ -3216,7 +3216,7 @@ console.log(response.request().redirectedFrom()); // null ``` #### request.redirectedTo() -- returns: New request issued by the browser iff the server responded with redirect. +- returns: New request issued by the browser if the server responded with redirect. This method is the opposite of [request.redirectedFrom()](#requestredirectedfrom): ```js diff --git a/test/queryselector.spec.js b/test/queryselector.spec.js index 6284558673..9dc4732e4f 100644 --- a/test/queryselector.spec.js +++ b/test/queryselector.spec.js @@ -528,7 +528,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI await page.setContent(`
"yo
ya
`); 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(`
yo
ya
\nye
`); expect(await page.$eval(`text=yA`, e => e.outerHTML)).toBe('
ya
'); expect(await page.$(`text="yA"`)).toBe(null);