-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: Break the tauri e2e tests apart Will fix #2658 * Clean up * Longer before timeout * Also exclude tauri tests from vitest * Utils fn back in app.spec.ts * Remove utils * Change before back to it * Remove explicit mocha dep * Revert other attemps at fixing the browser issues. mocha dep was the issue * Clean up * Signin/out sep with auth flows * Lint --------- Co-authored-by: Frank Noirot <frank@zoo.dev>
- Loading branch information
1 parent
2386ba2
commit a79e365
Showing
4 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { browser } from '@wdio/globals' | ||
|
||
export async function click(element: WebdriverIO.Element): Promise<void> { | ||
// Workaround for .click(), see https://github.com/tauri-apps/tauri/issues/6541 | ||
await element.waitForClickable() | ||
await browser.execute('arguments[0].click();', element) | ||
} | ||
|
||
/* Shoutout to @Sheap on Github for a great workaround utility: | ||
* https://github.com/tauri-apps/tauri/issues/6541#issue-1638944060 | ||
*/ | ||
export async function setDatasetValue( | ||
field: WebdriverIO.Element, | ||
property: string, | ||
value: string | ||
) { | ||
await browser.execute(`arguments[0].dataset.${property} = "${value}"`, field) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters