Skip to content

Commit 7f031af

Browse files
committed
Fix paths to be able to run backstop tests again #9
1 parent 0643f10 commit 7f031af

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ node_modules: package.json pnpm-lock.yaml
1212
backstop-reference: node_modules
1313
lsof -ti:4321 | xargs kill 2>/dev/null || true; \
1414
npx astro dev --port 4321 --host & DEV_PID=$$!; \
15-
until curl -sf http://localhost:4321/website > /dev/null; do sleep 1; done; \
15+
until curl -sf http://localhost:4321/ > /dev/null; do sleep 1; done; \
1616
npx backstop reference --docker; STATUS=$$?; \
1717
kill $$DEV_PID 2>/dev/null; \
1818
exit $$STATUS
@@ -23,7 +23,7 @@ backstop-approve: node_modules
2323
backstop-test: node_modules
2424
lsof -ti:4321 | xargs kill 2>/dev/null || true; \
2525
npx astro dev --port 4321 --host & DEV_PID=$$!; \
26-
until curl -sf http://localhost:4321/website > /dev/null; do sleep 1; done; \
26+
until curl -sf http://localhost:4321/ > /dev/null; do sleep 1; done; \
2727
npx backstop test --docker; STATUS=$$?; \
2828
kill $$DEV_PID 2>/dev/null; \
2929
exit $$STATUS

backstop.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
{ "label": "wide", "width": 1280, "height": 800 }
66
],
77
"scenarios": [
8-
{ "label": "Home", "url": "http://host.docker.internal:4321/website/", "misMatchThreshold": 0, "delay": 500 },
9-
{ "label": "About", "url": "http://host.docker.internal:4321/website/about", "misMatchThreshold": 0, "delay": 500 },
10-
{ "label": "Solutions", "url": "http://host.docker.internal:4321/website/solutions", "misMatchThreshold": 0, "delay": 500 },
11-
{ "label": "Partnerships", "url": "http://host.docker.internal:4321/website/partnerships", "misMatchThreshold": 0, "delay": 500 },
8+
{ "label": "Home", "url": "http://host.docker.internal:4321/", "misMatchThreshold": 0, "delay": 500 },
9+
{ "label": "About", "url": "http://host.docker.internal:4321/about", "misMatchThreshold": 0, "delay": 500 },
10+
{ "label": "Solutions", "url": "http://host.docker.internal:4321/solutions", "misMatchThreshold": 0, "delay": 500 },
11+
{ "label": "Partnerships", "url": "http://host.docker.internal:4321/partnerships", "misMatchThreshold": 0, "delay": 500 },
1212
{
1313
"label": "Mobile menu open",
14-
"url": "http://host.docker.internal:4321/website/#mobile-nav",
14+
"url": "http://host.docker.internal:4321/#mobile-nav",
1515
"misMatchThreshold": 0,
1616
"delay": 500,
1717
"viewports": [{ "label": "mobile", "width": 320, "height": 812 }]

0 commit comments

Comments
 (0)