forked from open-xml-templating/docxtemplater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webdriver-saucelabs.bash
54 lines (51 loc) · 2.46 KB
/
webdriver-saucelabs.bash
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env bash
set -euo pipefail
result=0
declare -a failures=()
test() {
fail=false
node webdriver.js || fail=true
if [ "$fail" = "true" ]
then
result=1
failures+=("Fail for ${browserName} ${version}")
fi
}
browserName="Safari" platform="iOS" version="13.0" test
browserName="firefox" platform="Windows 10" version="55" test
browserName="firefox" platform="Windows 10" version="60" test
browserName="firefox" platform="Windows 10" version="64" test
browserName="firefox" platform="Windows 10" version="65" test
browserName="firefox" platform="Windows 10" version="66" test
browserName="firefox" platform="Windows 10" version="67" test
browserName="firefox" platform="Windows 10" version="68" test
browserName="firefox" platform="Windows 10" version="73" test
browserName="firefox" platform="Windows 10" version="80" test
browserName="firefox" platform="Windows 10" version="85" test
browserName="firefox" platform="Windows 10" version="89" test
browserName="MicrosoftEdge" platform="Windows 10" version="16.16299" test
browserName="MicrosoftEdge" platform="Windows 10" version="17.17134" test
browserName="MicrosoftEdge" platform="Windows 10" version="18.17763" test
browserName="MicrosoftEdge" platform="Windows 10" version="83.0" test
browserName="MicrosoftEdge" platform="Windows 10" version="88.0" test
browserName="MicrosoftEdge" platform="Windows 10" version="91.0" test
browserName="safari" platform="macOs 10.12" version="11.0" filter="Speed test" test
browserName="safari" platform="macOS 10.14" version="12.0" filter="Speed test" test
browserName="safari" platform="macOS 10.15" version="13.1" filter="Speed test" test
browserName="safari" platform="macOS 11" version="14" filter="Speed test" test
browserName="chrome" platform="Windows 10" version="58" test
browserName="chrome" platform="Windows 10" version="71" test
browserName="chrome" platform="Windows 10" version="73" test
browserName="chrome" platform="Windows 10" version="75" test
browserName="chrome" platform="Windows 10" version="81" test
browserName="chrome" platform="Windows 10" version="85" test
browserName="chrome" platform="Windows 10" version="88" test
browserName="chrome" platform="Windows 10" version="91" test
browserName="internet explorer" platform="Windows 7" filter="Speed test" version="10.0" test
browserName="internet explorer" platform="Windows 10" filter="Speed test" version="11" test
if [ "$result" = "1" ]
then
echo "Failures for following browsers :"
printf "%s\n" "${failures[@]}"
fi
exit "$result"