This commit is contained in:
parent
70986dc137
commit
5af2dd63c1
7
cypress.config.js
Normal file
7
cypress.config.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { defineConfig } from "cypress";
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
supportFile: false,
|
||||
},
|
||||
});
|
7
cypress/e2e/index.cy.js
Normal file
7
cypress/e2e/index.cy.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
describe("Home", () =>
|
||||
it("titles are correct", () => {
|
||||
const page = cy.visit("http://localhost:4321");
|
||||
|
||||
page.get("title").should("have.text", "log101");
|
||||
page.get("h1").should("have.text", "Log101");
|
||||
}));
|
2084
package-lock.json
generated
2084
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,8 @@
|
|||
"start": "astro dev",
|
||||
"build": "astro check && astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
"astro": "astro",
|
||||
"test": "cypress run --browser chrome && cypress run --browser firefox"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.5.10",
|
||||
|
@ -17,6 +18,7 @@
|
|||
"typescript": "^5.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cypress": "^13.11.0",
|
||||
"prettier": "3.2.5"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user