Skip to content

Commit

Permalink
mod tests
Browse files Browse the repository at this point in the history
  • Loading branch information
komal-sai-yral committed Jan 9, 2025
1 parent 4bc6cb6 commit 3743eda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/src/menuTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ describe("Menu page test", function () {

it('menu page has option to enable notification', async function (browser) {

browser.element.findByText('Menu').waitUntil('visible')
browser.element.findByText("Login").waitUntil("enabled")
browser.element.findByText('Menu').waitUntil('visible', { timeout: 10000 })
browser.element.findByText("Login").waitUntil("enabled", { timeout: 10000 })
browser.percySnapshot('Menu Page');
let settingsRow = browser.element.findByText("Settings");
let scrollY = (await settingsRow.getRect()).y;
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/src/walletTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ describe("wallet page tests", function () {
})

it("default wallet page contains 1000 COYNS", async function(browser){
browser.element.findByText("COYNS", {timeout: 10000}).waitUntil('enabled')
browser.element.findByText("1000", {timeout: 10000}).waitUntil('enabled');
browser.element.findByText("COYNS", {timeout: 10000}).waitUntil('enabled', { timeout: 10000 });
browser.element.findByText("1000", {timeout: 10000}).waitUntil('enabled', { timeout: 10000 });
})
it("default wallet page contains 1000 COYNS", function(browser) {
browser.waitForElementVisible('body', 10000);

browser.pause(10000);


browser.element.findByText("COYNS", { timeout: 10000 }).waitUntil('visible').assert.enabled();
browser.element.findByText("1000", { timeout: 10000 }).waitUntil('visible').assert.enabled();
browser.element.findByText("COYNS", { timeout: 10000 }).waitUntil('visible', { timeout: 10000 }).assert.enabled();
browser.element.findByText("1000", { timeout: 10000 }).waitUntil('visible', { timeout: 10000 }).assert.enabled();

});

Expand Down

0 comments on commit 3743eda

Please sign in to comment.