Skip to content

Commit 43ee584

Browse files
committed
feat: Update Cypress tests to use 127.0.0.1 and change Storybook server port to 6006
1 parent c3f90b9 commit 43ee584

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- name: Run Cypress tests
2323
run: |
2424
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
25-
"npx http-server storybook-static --port 8081" \
26-
"npx wait-on tcp:8081 && pnpm cypress:run"
25+
"npx http-server storybook-static --port 6006 --silent" \
26+
"npx wait-on tcp:6006 && pnpm cypress:run"
2727
- run: pnpm run build

cypress/e2e/base.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe("swap tests", () => {
22
beforeEach(() => {
33
cy.visit(
4-
"http://localhost:6006/iframe.html?args=&globals=&id=components-swap--default&viewMode=story"
4+
"http://127.0.0.1:6006/iframe.html?args=&globals=&id=components-swap--default&viewMode=story"
55
);
66
});
77
it("should be able to swap ston with right dex", () => {

cypress/e2e/ui.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe("setting ui components test", () => {
22
beforeEach(() => {
33
cy.visit(
4-
"http://localhost:6006/iframe.html?args=&globals=&id=components-swap--default&viewMode=story"
4+
"http://127.0.0.1:6006/iframe.html?args=&globals=&id=components-swap--default&viewMode=story"
55
);
66

77
cy.get("[data-testid='setting-button']").click();

0 commit comments

Comments
 (0)