Skip to content

Commit 59228bd

Browse files
author
DavertMik
committed
fix: update test expectations for Frame error message
1 parent ac9f5b9 commit 59228bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helper/Playwright_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,15 @@ describe('Playwright', function () {
424424
.then(() => I.switchTo('#invalidIframeSelector'))
425425
.catch(e => {
426426
e.should.be.instanceOf(Error)
427-
e.message.should.be.equal('Element "#invalidIframeSelector" was not found by text|CSS|XPath')
427+
e.message.should.be.equal('Frame "#invalidIframeSelector" was not found by text|CSS|XPath')
428428
}))
429429

430430
it('should return error if iframe selector is not iframe', () =>
431431
I.amOnPage('/iframe')
432432
.then(() => I.switchTo('h1'))
433433
.catch(e => {
434434
e.should.be.instanceOf(Error)
435-
e.message.should.be.equal('Element "#invalidIframeSelector" was not found by text|CSS|XPath')
435+
e.message.should.be.equal('Frame "#invalidIframeSelector" was not found by text|CSS|XPath')
436436
}))
437437

438438
it('should return to parent frame given a null locator', async () => {

0 commit comments

Comments
 (0)