Skip to content

Commit

Permalink
cypress migration and first test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmarcus committed Mar 10, 2023
1 parent 3808af1 commit 2579cd1
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 29 deletions.
12 changes: 12 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.ts").default(on, config);
},
baseUrl: "http://localhost:3000",
},
});
3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
describe("My First Test", () => {
it("visits the app root url", () => {
cy.visit("/");
cy.contains("h1", "You did it!");
cy.contains("h2", "Krzysztof Szumny");
});
});
File renamed without changes.
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2579cd1

Please sign in to comment.