Skip to content

Commit

Permalink
Add setup
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Dec 23, 2023
1 parent f4ccc06 commit 819100f
Show file tree
Hide file tree
Showing 4 changed files with 972 additions and 18 deletions.
21 changes: 21 additions & 0 deletions cypress/e2e/screenshot.spec.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2023 Paion Data. All rights reserved.

import "@argos-ci/cypress/support";

describe("Argos tests", () => {
beforeEach(() => {
cy.visit("http://localhost:3000/");
});

it("test", () => {
const baseUrl = "http://localhost:3000";
const pages = [{ name: "homepage", path: "/" }];

for (const { name, path } of pages) {
it(`Screenshots for ${name}`, () => {
cy.visit(`${baseUrl}${path}`);
cy.argosScreenshot(name);
});
}
});
});
2 changes: 1 addition & 1 deletion cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"],
"types": ["cypress", "@argos-ci/cypress", "node"],
"strictNullChecks": true
},
"include": ["**/*.ts"]
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@argos-ci/cli": "^1.0.4",
"@argos-ci/cypress": "^1.2.2",
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
Expand Down
Loading

0 comments on commit 819100f

Please sign in to comment.