Skip to content

Commit

Permalink
add setup for cypress testing (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
chopkinsmade authored Feb 1, 2024
1 parent b093889 commit 792d135
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
e2e: {
baseUrl: "http://dataworkspace.test:8000",
screenshotsFolder: "test-results/screenshots",
video:true,
video: true,
videosFolder: "test-results/videos",
viewportWidth: 1200,
viewportHeight: 900,
Expand Down
1 change: 1 addition & 0 deletions cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/// <reference types="cypress" />
import "@testing-library/cypress/add-commands";
import "./setup-cypress-testing-library";
5 changes: 5 additions & 0 deletions cypress/support/setup-cypress-testing-library.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { configure } from "@testing-library/dom";

configure({
testIdAttribute: "data-test",
});

0 comments on commit 792d135

Please sign in to comment.