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
platosha authored and web-padawan committed Jun 11, 2019
1 parent 6c97ade commit 89877b3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/visual/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@
</vaadin-checkbox-group>
</div>

<div id="wrapping-group-tests" style="width: 300px;">
<vaadin-checkbox-group label="Choose a number">
<vaadin-checkbox value="1">Checkbox 1</vaadin-checkbox>
<vaadin-checkbox value="2">Checkbox 2</vaadin-checkbox>
<vaadin-checkbox value="3">Checkbox 3</vaadin-checkbox>
<vaadin-checkbox value="4">Checkbox 4</vaadin-checkbox>
<vaadin-checkbox value="5">Checkbox 5</vaadin-checkbox>
<vaadin-checkbox value="6">Checkbox 6</vaadin-checkbox>
<vaadin-checkbox value="7">Checkbox 7</vaadin-checkbox>
<vaadin-checkbox value="8">Checkbox 8</vaadin-checkbox>
<vaadin-checkbox value="9">Checkbox 9</vaadin-checkbox>
<vaadin-checkbox value="10">Checkbox 10</vaadin-checkbox>
</vaadin-checkbox-group>
</div>

<script>
window.addEventListener('WebComponentsReady', () => {
const checkboxGroup = document.getElementById('validation-checkbox-group');
Expand Down
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 @@ -59,6 +59,13 @@ gemini.suite('vaadin-checkbox', function(rootSuite) {
.setCaptureElements('#focus-tests')
.capture('focus');
});

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

});

0 comments on commit 89877b3

Please sign in to comment.