Skip to content

Commit 62d705e

Browse files
committed
Fix popup tests
1 parent 3f1680c commit 62d705e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/helper/WebDriver_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ describe('WebDriver', function () {
5252
beforeEach(async () => {
5353
webApiTests.init({ I: wd, siteUrl })
5454
this.wdBrowser = await wd._before()
55+
this.wdBrowser.on('dialog', dialog => {})
5556
return this.wdBrowser
5657
})
5758

@@ -717,9 +718,7 @@ describe('WebDriver', function () {
717718
it('should check text in popup', () => {
718719
return wd
719720
.amOnPage('/form/popup')
720-
.then(() => wd.waitForText('Alert', 5))
721721
.then(() => wd.click('Alert'))
722-
.then(() => wd.waitForText('Really?', 5))
723722
.then(() => wd.seeInPopup('Really?'))
724723
.then(() => wd.cancelPopup())
725724
})

0 commit comments

Comments
 (0)