Skip to content

Commit

Permalink
Added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed May 9, 2024
1 parent 4468445 commit 60d7879
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions detox/test/types/detox-global-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ describe("Test", () => {
.whileElement(by.id("ScrollView630"))
.scroll(50, "down");

await waitFor(element(by.text("Text5")))
.toBeVisible()
.whileElement(by.id("ScrollView630"))
.scroll(50, "down", 0.5, 0.5);

// @ts-expect-error
await waitFor(element(by.text("Text5"))).toBeVisible().whileElement(by.id("ScrollView630")).tap();

await web.element(by.web.id("btnSave")).tap();
await web.element(by.web.id("btnSave")).runScript('(el) => el.click()');
const scriptResult = await web.element(by.web.id("btnSave")).runScript(function (el: any, text: string) {
Expand Down

0 comments on commit 60d7879

Please sign in to comment.