-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.js
32 lines (28 loc) · 874 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
gemini.suite('vaadin-list-box', function(rootSuite) {
function wait(actions, find) {
actions.wait(5000);
}
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);
['lumo', 'material'].forEach(theme => {
gemini.suite(`list-box-${theme}`, function(suite) {
suite
.setUrl(`list-box.html?theme=${theme}`)
.setCaptureElements('#list-box-tests')
.capture('list-box');
});
gemini.suite(`rtl-list-box-${theme}`, function(suite) {
suite
.setUrl(`rtl.html?theme=${theme}`)
.setCaptureElements('#rtl-list-box-tests')
.capture('list-box');
});
});
});