generated from saucelabs/new-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support simulator/emulator test (#9)
* feat: Support simulator/emulator test * rename file * extract sauce opts from caps * let testcafe handle exception
- Loading branch information
1 parent
c086dc1
commit 58fa94b
Showing
5 changed files
with
91 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
lib | ||
node_modules | ||
.vscode |
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,19 @@ | ||
/** | ||
* Checks if the provided name indicates a device (simulator or emulator). | ||
* | ||
* @param name - The name to check. | ||
* @returns `true` if the name includes 'Simulator' or 'Emulator', otherwise `false`. | ||
*/ | ||
export function isDevice(name: string): boolean { | ||
return name.includes('Simulator') || name.includes('Emulator'); | ||
} | ||
|
||
/** | ||
* Checks if the provided name indicates a simulator. | ||
* | ||
* @param name - The name to check. | ||
* @returns `true` if the name includes 'Simulator', otherwise `false`. | ||
*/ | ||
export function isSimulator(name: string): boolean { | ||
return name.includes('Simulator'); | ||
} |
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