chore: fix typo on sepcified -> specified (#1153)

This commit is contained in:
aesyondu 2020-02-28 09:44:19 +08:00 committed by GitHub
parent 823bf389a7
commit 041b8c6e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,7 @@ module.exports.describe = function({testRunner, expect, selectors, FFOX, CHROMIU
await page.setContent(`<div> "yo <div></div>ya</div>`);
expect(await selectors._createSelector('text', await page.$('div'))).toBe('" \\"yo "');
});
it('should be case sensitive iff quotes are sepcified', async({page}) => {
it('should be case sensitive iff 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);