Skip to content

Commit c64f3af

Browse files
Fix tests
Increase threshould for axes and "wrong protocol version" tests
1 parent ca204e6 commit c64f3af

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/backstopjs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15+
1516
- name: Use Node.js 16
1617
uses: actions/setup-node@v2
1718
with:
1819
node-version: 16.x
1920

20-
- name: Install dependencies
21+
- name: Install BackstopJS dependencies if testing locally
22+
if: ${{ env.ACT }}
23+
run: |
24+
sudo apt update
25+
sudo apt install libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libasound2 -y
26+
27+
- name: Install BackstopJS
2128
# express is already isntalled
2229
run: npm install backstopjs
2330

backstop.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@
3131
"label": "scene with axes",
3232
"url": "http://localhost:8080/examples/test/axes.html",
3333
"delay": 1000,
34-
"misMatchThreshold": 0.5
34+
"misMatchThreshold": 0.6
3535
},
3636
{
3737
"label": "wrong protocol version",
3838
"url": "http://localhost:8080/examples/test/wrong_protocol_version.html",
3939
"delay": 1000,
40-
"misMatchThreshold": 3
40+
"requireSameDimensions": false,
41+
"misMatchThreshold": 7
4142
},
4243
{
4344
"label": "Ambient light",

0 commit comments

Comments
 (0)