Skip to content

Commit 2006f26

Browse files
chore: update images
1 parent 01acae3 commit 2006f26

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Loading
Loading

e2e/tests.e2e.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ describe("sample scenario", () => {
2121
});
2222

2323
it("should go to support page", async () => {
24-
const btnGoToSupportPage = await driver.findElementByText("go to support page", SearchOptions.exact);
24+
const btnGoToSupportPage = await driver.findElementByAutomationText("go to support page");
2525
const homeImage = await driver.compareScreen("home");
2626
assert.isTrue(homeImage);
2727
await btnGoToSupportPage.click();
28-
const titleSupportPage = await driver.findElementByText("Support Page", SearchOptions.exact);
28+
const titleSupportPage = await driver.findElementByAutomationText("Support Page");
2929
console.log(await titleSupportPage.text());
3030
});
3131

3232
it("should go back to home page", async () => {
33-
const btnGoBackToHomePage = await driver.findElementByText("go back to home page", SearchOptions.exact);
33+
const btnGoBackToHomePage = await driver.findElementByAutomationText("go back to home page");
3434
const supportImage = await driver.compareScreen("support");
3535
assert.isTrue(supportImage);
3636
await btnGoBackToHomePage.click();
37-
const titleHomePage = await driver.findElementByText("Home Page", SearchOptions.exact);
37+
const titleHomePage = await driver.findElementByAutomationText("Home Page");
3838
console.log(await titleHomePage.text());
3939
});
4040
});

0 commit comments

Comments
 (0)