-
Notifications
You must be signed in to change notification settings - Fork 4
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
28 changed files
with
440 additions
and
423 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,22 +1,16 @@ | ||
rootUrl: http://localhost:8080/components/vaadin-progress-bar/test/visual/ | ||
rootUrl: http://localhost:8080/test/visual/ | ||
gridUrl: http://localhost:4444/wd/hub | ||
screenshotsDir: ./test/visual/screens | ||
|
||
system: | ||
plugins: | ||
polyserve: | ||
esm: | ||
port: 8080 | ||
sauce: true | ||
|
||
browsers: | ||
chrome: | ||
desiredCapabilities: | ||
browserName: "chrome" | ||
version: "67.0" | ||
platform: "Windows 10" | ||
|
||
firefox: | ||
desiredCapabilities: | ||
browserName: "firefox" | ||
version: "47.0" | ||
version: "69.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>Progress bar default tests</title> | ||
</head> | ||
|
||
<body> | ||
|
||
<span id="default-tests"> | ||
<vaadin-progress-bar value="0.1"> | ||
</vaadin-progress-bar> | ||
</span> | ||
|
||
<script type="module"> | ||
(async() => { | ||
const progressBar = document.querySelector('vaadin-progress-bar'); | ||
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
|
||
await import('../../theme/' + theme + '/vaadin-progress-bar.js'); | ||
|
||
await progressBar.updateComplete; | ||
|
||
window.requestAnimationFrame(() => { | ||
window.webComponentsAreReady = true; | ||
}); | ||
})(); | ||
</script> | ||
</body> | ||
</html> | ||
|
||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title></title> | ||
<script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script> | ||
<script> | ||
const theme = window.location.search.replace(/.*theme=(\w+).*/, '$1') || 'lumo'; | ||
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-progress-bar.html">`); | ||
|
||
window.addEventListener('WebComponentsReady', function() { | ||
customElements.whenDefined('vaadin-progress-bar').then(function() { | ||
window.ShadyDOM && window.ShadyDOM.flush(); // Force DOM composition | ||
window.webComponentsAreReady = true; // Checked in gemini before capture callback | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
|
||
<span id="default-tests"> | ||
<vaadin-progress-bar value="0.1"> | ||
</vaadin-progress-bar> | ||
</span> | ||
|
||
</body> |
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,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>Progress bar lumo-variants tests</title> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<span id="variants"> | ||
<vaadin-progress-bar value="0.1" theme="contrast"> | ||
</vaadin-progress-bar> | ||
<vaadin-progress-bar value="1" theme="sucess"> | ||
</vaadin-progress-bar> | ||
<vaadin-progress-bar value="0.1" theme="error"> | ||
</vaadin-progress-bar> | ||
</span> | ||
|
||
|
||
<script type="module"> | ||
import '../../theme/lumo/vaadin-progress-bar.js'; | ||
|
||
(async() => { | ||
(async() => { | ||
const progressBar = document.querySelector('vaadin-progress-bar'); | ||
|
||
await progressBar.updateComplete; | ||
|
||
window.requestAnimationFrame(() => { | ||
window.webComponentsAreReady = true; | ||
}); | ||
})(); | ||
})(); | ||
</script> | ||
|
||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...ual/screens/vaadin-progress-bar/default-rtl-lumo/vaadin-progress-bar/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-223 Bytes
...al/screens/vaadin-progress-bar/default-rtl-lumo/vaadin-progress-bar/firefox.png
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
...screens/vaadin-progress-bar/default-rtl-material/vaadin-progress-bar/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-124 Bytes
...creens/vaadin-progress-bar/default-rtl-material/vaadin-progress-bar/firefox.png
Binary file not shown.
Binary file added
BIN
+324 Bytes
test/visual/screens/vaadin-progress-bar/default-tests-lumo/default/chrome.png
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
+322 Bytes
test/visual/screens/vaadin-progress-bar/default-tests-lumo/rtl/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-221 Bytes
.../screens/vaadin-progress-bar/default-tests-lumo/vaadin-progress-bar/firefox.png
Binary file not shown.
Binary file added
BIN
+240 Bytes
test/visual/screens/vaadin-progress-bar/default-tests-material/default/chrome.png
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
+238 Bytes
test/visual/screens/vaadin-progress-bar/default-tests-material/rtl/chrome.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-124 Bytes
...eens/vaadin-progress-bar/default-tests-material/vaadin-progress-bar/firefox.png
Binary file not shown.
Binary file added
BIN
+647 Bytes
test/visual/screens/vaadin-progress-bar/lumo-variants/variants/chrome.png
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 |
---|---|---|
@@ -1,36 +1,31 @@ | ||
gemini.suite('vaadin-progress-bar', function(rootSuite) { | ||
gemini.suite('vaadin-progress-bar', rootSuite => { | ||
function wait(actions, find) { | ||
return actions | ||
.waitForJSCondition(function(window) { | ||
return window.webComponentsAreReady; | ||
}, 80000); | ||
return actions.waitForJSCondition(window => { | ||
return window.webComponentsAreReady; | ||
}, 80000); | ||
} | ||
|
||
function goToAboutBlank(actions, find) { | ||
// Firefox stops responding on socket after a test, workaround: | ||
return actions.executeJS(function(window) { | ||
window.location.href = 'about:blank'; // just go away, please! | ||
}); | ||
} | ||
|
||
rootSuite | ||
.before(wait) | ||
.after(goToAboutBlank); | ||
rootSuite.before(wait); | ||
|
||
['lumo', 'material'].forEach(theme => { | ||
gemini.suite(`default-tests-${theme}`, function(suite) { | ||
gemini.suite(`default-tests-${theme}`, suite => { | ||
suite | ||
.setUrl(`default.html?theme=${theme}`) | ||
.setCaptureElements('#default-tests') | ||
.capture('vaadin-progress-bar'); | ||
}); | ||
|
||
gemini.suite(`default-rtl-${theme}`, function(suite) { | ||
suite | ||
.setUrl(`rtl.html?theme=${theme}`) | ||
.setCaptureElements('#rtl-tests') | ||
.capture('vaadin-progress-bar'); | ||
.capture('vaadin-progress-bar') | ||
.capture('default') | ||
.capture('rtl', actions => { | ||
actions.executeJS(window => { | ||
window.document.documentElement.setAttribute('dir', 'rtl'); | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
gemini.suite('lumo-variants', suite => { | ||
suite | ||
.setUrl('lumo-variants.html') | ||
.setCaptureElements('#variants') | ||
.capture('variants'); | ||
}); | ||
}); |
Oops, something went wrong.