Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fix: waitForElementNotPresent #3599

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions test/src/core/testPageObjectWaitForElementNotPresent.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ describe('test PageObject WaitForElementNotPresent', function () {
Nocks.deleteSession().disable();
});

it('WaitForElementNotPresent with section', function(done) {
it('WaitForElementNotPresent with section', async function() {
Nocks.elementFound().click().elementFound().childElementsFound('#badElement').elementFound().childElementsNotFound()

const page = this.client.api.page.waitForElementNotPresentPageObj();

let res;
page.waitForElementNotPresentDemo(function(result) {
assert.equal(result.status, 0);
done();
res = result;
})

this.client.start()

await this.client.start();
swrdfish marked this conversation as resolved.
Show resolved Hide resolved
assert.equal(res.status, 0);
garg3133 marked this conversation as resolved.
Show resolved Hide resolved
});
});