-
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.
- Loading branch information
Showing
13 changed files
with
990 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.png | ||
*.steps.cache | ||
_logs/ |
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,3 @@ | ||
src | ||
tsconfig.json | ||
tsconfig.tsbuildinfo |
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,31 @@ | ||
(async () => { | ||
const testCase = new TestCase("Fry an egg"); | ||
const url = "https://sakuli.io/e2e-pages/fryed-egg"; | ||
const screen = new Region(); | ||
const env = new Environment(); | ||
try { | ||
await _navigateTo(url); | ||
await _highlight(_heading1(/LET'S FRY AN EGG/), 2000); | ||
await env.setSimilarity(0.95); | ||
await screen | ||
.find("source_egg.png") | ||
.highlight(1) | ||
.mouseMove() | ||
.mouseDown(MouseButton.LEFT); | ||
await testCase.endOfStep("Search egg"); | ||
await env.setSimilarity(0.6); | ||
await screen | ||
.find("target_pan.png") | ||
.highlight(1) | ||
.mouseMove() | ||
.mouseUp(MouseButton.LEFT); | ||
await testCase.endOfStep("Drop egg"); | ||
await new Region(0, 0, 10, 10).highlight(1).mouseMove(); | ||
await screen.waitForImage("result.png", 5).highlight(1); | ||
await testCase.endOfStep("Check result"); | ||
} catch (e) { | ||
await testCase.handleException(e); | ||
} finally { | ||
await testCase.saveResult(); | ||
} | ||
})(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,31 @@ | ||
(async () => { | ||
const testCase = new TestCase("Fry a typed egg"); | ||
const url = "https://sakuli.io/e2e-pages/fryed-egg"; | ||
const screen = new Region(); | ||
const env = new Environment(); | ||
try { | ||
await _navigateTo(url); | ||
await _highlight(_heading1(/LET'S FRY AN EGG/), 2000); | ||
await env.setSimilarity(0.95); | ||
await screen | ||
.find("source_egg.png") | ||
.highlight(1) | ||
.mouseMove() | ||
.mouseDown(MouseButton.LEFT); | ||
await testCase.endOfStep("Search egg"); | ||
await env.setSimilarity(0.6); | ||
await screen | ||
.find("target_pan.png") | ||
.highlight(1) | ||
.mouseMove() | ||
.mouseUp(MouseButton.LEFT); | ||
await testCase.endOfStep("Drop egg"); | ||
await new Region(0, 0, 10, 10).highlight(1).mouseMove(); | ||
await screen.waitForImage("result.png", 5).highlight(1); | ||
await testCase.endOfStep("Check result"); | ||
} catch (e) { | ||
await testCase.handleException(e); | ||
} finally { | ||
await testCase.saveResult(); | ||
} | ||
})(); |
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,4 @@ | ||
testsuite.id=integrationtest | ||
testsuite.browser=chrome | ||
log.level=debug | ||
selenium.chrome.arguments=--incognito --disable-dev-shm-usage --no-sandbox |
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,2 @@ | ||
FryAnEgg/fryMe.js https://sakuli.io | ||
FryAnEgg/typedEgg.ts https://sakuli.io |
Oops, something went wrong.