Skip to content

Commit 8a8e7b9

Browse files
Ryan A. Johnsonshaleen76
authored andcommitted
test(saucelabs): Run travis tests on saucelabs.
IE, Edge, Firefox browsers on Windows 10. Chrome and safari on Mac.
1 parent 776f354 commit 8a8e7b9

File tree

50 files changed

+829
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+829
-44
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ node_js:
66
notifications:
77
email: false
88
addons:
9-
firefox: '60.0'
10-
chrome: stable
9+
firefox: '61.0'
10+
sauce_connect: true
1111
branch:
1212
only:
1313
- master

docs/components/tabs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<section>
1414
<h2 id="basic-tabset">Basic Tabset</h2>
1515
<div class="example">
16-
<div class="tabs-demo" data-visreg="tabs">
16+
<div class="tabs-demo">
1717
<hx-tabset id="android-desserts">
1818
<hx-tablist>
1919
<hx-tab>Cupcake Ipsum</hx-tab>

test/common/util.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Helper functions for the tests in `../visreg/`.
2+
* Helper functions for the tests in `../behavioral/`.
33
*/
44
import {By, ISize, WebDriver, WebElement, WebElementPromise} from "snappit-visual-regression";
55
import {TestContext} from "ava";
@@ -24,10 +24,7 @@ export async function webComponentsReady(driver: WebDriver) {
2424
}
2525

2626
export async function snapshot(t: TestContext, element: WebElement) {
27-
if (process.env.TRAVIS) {
28-
await webComponentsReady(element.getDriver());
29-
}
30-
27+
await webComponentsReady(element.getDriver());
3128
t.snapshot(await element.getAttribute("outerHTML"));
3229
}
3330

@@ -55,7 +52,7 @@ export async function getElementsText(
5552

5653
/* A "starter page object" until there's a greater need for something more robust.
5754
* For now this only contains common CSS selectors used throughout tests in the
58-
* visreg directory, but may also contain functions in the future.
55+
* behavioral directory, but may also contain functions in the future.
5956
*
6057
* Once that happens, pull this out of `util.ts` and move it someplace more page-object-y.
6158
*/
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Snapshot report for `built/dom-snapshots/components-checkboxes-MicrosoftEdge.js`
2+
3+
The actual snapshot is saved in `components-checkboxes-MicrosoftEdge.js.snap`.
4+
5+
Generated by [AVA](https://ava.li).
6+
7+
## MicrosoftEdge on Windows 10 -- components/checkboxes/test.html
8+
9+
> Snapshot 1
10+
11+
`<td data-dom-diff="hxCheckbox-default">␊
12+
<hx-checkbox><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
13+
</td>`
14+
15+
> Snapshot 2
16+
17+
`<td data-dom-diff="hxCheckbox-default-checked">␊
18+
<hx-checkbox checked=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
19+
</td>`
20+
21+
> Snapshot 3
22+
23+
`<td data-dom-diff="hxCheckbox-default-indeterminate">␊
24+
<hx-checkbox indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
25+
</td>`
26+
27+
> Snapshot 4
28+
29+
`<td data-dom-diff="hxCheckbox-default-checked-indeterminate">␊
30+
<hx-checkbox checked="" indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
31+
</td>`
32+
33+
> Snapshot 5
34+
35+
`<td data-dom-diff="hxCheckbox-invalid">␊
36+
<hx-checkbox invalid=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
37+
</td>`
38+
39+
> Snapshot 6
40+
41+
`<td data-dom-diff="hxCheckbox-invalid-checked">␊
42+
<hx-checkbox invalid="" checked=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
43+
</td>`
44+
45+
> Snapshot 7
46+
47+
`<td data-dom-diff="hxCheckbox-invalid-indeterminate">␊
48+
<hx-checkbox invalid="" indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
49+
</td>`
50+
51+
> Snapshot 8
52+
53+
`<td data-dom-diff="hxCheckbox-invalid-checked-indeterminate">␊
54+
<hx-checkbox invalid="" checked="" indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
55+
</td>`
56+
57+
> Snapshot 9
58+
59+
`<td data-dom-diff="hxCheckbox-disabled">␊
60+
<hx-checkbox disabled="" aria-disabled="true"><label class="style-scope hx-checkbox" id="hxCheckbox"><input disabled="" class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
61+
</td>`
62+
63+
> Snapshot 10
64+
65+
`<td data-dom-diff="hxCheckbox-disabled-checked">␊
66+
<hx-checkbox disabled="" aria-disabled="true" checked=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input disabled="" class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
67+
</td>`
68+
69+
> Snapshot 11
70+
71+
`<td data-dom-diff="hxCheckbox-disabled-indeterminate">␊
72+
<hx-checkbox disabled="" aria-disabled="true" indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input disabled="" class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
73+
</td>`
74+
75+
> Snapshot 12
76+
77+
`<td data-dom-diff="hxCheckbox-disabled-checked-indeterminate">␊
78+
<hx-checkbox disabled="" aria-disabled="true" checked="" indeterminate=""><label class="style-scope hx-checkbox" id="hxCheckbox"><input disabled="" class="style-scope hx-checkbox" id="hxNativeControl" type="checkbox"><div class="style-scope hx-checkbox" id="hxCustomControl"><hx-icon class="style-scope hx-checkbox" id="hxTick" aria-hidden="true" type="checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 7.038 14.997 c -0.438 0 -0.858 -0.192 -1.145 -0.53 L 1.355 9.111 a 1.5 1.5 0 0 1 2.289 -1.939 l 3.171 3.742 l 5.392 -9.175 a 1.5 1.5 0 0 1 2.586 1.52 L 8.331 14.257 a 1.5 1.5 0 0 1 -1.293 0.74" /></svg></hx-icon><hx-icon class="style-scope hx-checkbox" id="hxMinus" aria-hidden="true" type="minus"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" focusable="false"><path d="M 3 9 a 1 1 0 1 1 0 -2 h 10 a 1 1 0 0 1 0 2 H 3 Z" /></svg></hx-icon></div></label></hx-checkbox>␊
79+
</td>`
820 Bytes
Binary file not shown.

test/dom-snapshots/components-checkboxes-chrome.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The actual snapshot is saved in `components-checkboxes-chrome.js.snap`.
44

55
Generated by [AVA](https://ava.li).
66

7-
## chrome -- components/checkboxes/test.html
7+
## chrome on macOS 10.13 -- components/checkboxes/test.html
88

99
> Snapshot 1
1010
0 Bytes
Binary file not shown.

test/dom-snapshots/components-checkboxes-firefox.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The actual snapshot is saved in `components-checkboxes-firefox.js.snap`.
44

55
Generated by [AVA](https://ava.li).
66

7-
## firefox -- components/checkboxes/test.html
7+
## firefox on Windows 10 -- components/checkboxes/test.html
88

99
> Snapshot 1
1010
6 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)