Skip to content

Commit

Permalink
Test fix: waitForElementNotPresent (#3599)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-bs committed May 9, 2023
1 parent 187835f commit c6f5f3b
Showing 1 changed file with 6 additions and 5 deletions.
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 @@ xdescribe('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();
assert.equal(res.status, 0);
});
});

0 comments on commit c6f5f3b

Please sign in to comment.