Skip to content

Commit

Permalink
test(visual): add test case for group wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Jun 11, 2019
1 parent 1ff7c57 commit 6c099d0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/visual/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ gemini.suite('vaadin-radio-button', function(rootSuite) {
});
});
});

gemini.suite(`wrapping-tests-${theme}`, function(suite) {
suite
.setUrl(`wrapping.html?theme=${theme}`)
.setCaptureElements('#wrapping-tests')
.capture('wrapping');
});
});

});
25 changes: 25 additions & 0 deletions test/visual/wrapping.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE 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-radio-button.html">`);
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-radio-group.html">`);
</script>
</head>

<body>

<div id="wrapping-tests" style="width: 320px; padding: 6px;">
<vaadin-radio-group label="Choose a number">
<vaadin-radio-button value="1">Radio button 1</vaadin-radio-button>
<vaadin-radio-button value="2">Radio button 2</vaadin-radio-button>
<vaadin-radio-button value="3">Radio button 3</vaadin-radio-button>
<vaadin-radio-button value="4">Radio button 4</vaadin-radio-button>
</vaadin-radio-group>
</div>

</body>

0 comments on commit 6c099d0

Please sign in to comment.