This repository has been archived by the owner on Aug 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore visual tests using gemini in SauceLabs
- Loading branch information
1 parent
aa7585a
commit 32d84cb
Showing
9 changed files
with
1,490 additions
and
305 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,16 @@ | ||
rootUrl: http://localhost:8080/test/visual/ | ||
gridUrl: http://localhost:4444/wd/hub | ||
screenshotsDir: ./test/visual/screens | ||
|
||
system: | ||
plugins: | ||
esm: | ||
port: 8080 | ||
sauce: true | ||
|
||
browsers: | ||
chrome: | ||
desiredCapabilities: | ||
browserName: "chrome" | ||
version: "66.0" | ||
platform: "Windows 10" |
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
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,21 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
</head> | ||
|
||
<body> | ||
|
||
<span id="default-tests"> | ||
<vaadin-element> | ||
<button>Go Vaadin!</button> | ||
</vaadin-element> | ||
</span> | ||
|
||
<script type="module"> | ||
const theme = location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
import('../../theme/' + theme + '/vaadin-element.js'); | ||
</script> | ||
</body> | ||
</html> |
Binary file added
BIN
+1.11 KB
test/visual/screens/vaadin-element/default-tests-lumo/vaadin-element/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.11 KB
.../visual/screens/vaadin-element/default-tests-material/vaadin-element/chrome.png
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,18 @@ | ||
gemini.suite('vaadin-element', function(rootSuite) { | ||
function wait(actions, find) { | ||
return actions.wait(5000); | ||
} | ||
|
||
rootSuite | ||
.before(wait); | ||
|
||
['lumo', 'material'].forEach(theme => { | ||
gemini.suite(`default-tests-${theme}`, function(suite) { | ||
suite | ||
.setUrl(`default.html?theme=${theme}`) | ||
.setCaptureElements('#default-tests') | ||
.capture(`vaadin-element`); | ||
}); | ||
}); | ||
|
||
}); |
Oops, something went wrong.