Skip to content

Commit

Permalink
use build for cypress testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gregermendle committed Nov 5, 2024
1 parent 059fe80 commit 51c3f8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/example/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
e2e: {
setupNodeEvents: (on, config) => {
const configOverrides: Partial<Cypress.PluginConfigOptions> = {
baseUrl: `http://localhost:5173`,
baseUrl: `http://localhost:3000`,
screenshotOnRunFailure: !process.env.CI,
};

Expand Down
1 change: 0 additions & 1 deletion apps/example/cypress/e2e/preview-browser.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ describe("PreviewBrowser", () => {
it("should open preview", () => {
cy.visit("/email");
cy.get('[aria-label="view LoginCode"]').click();
cy.get('[aria-label="view LoginCode"]').click();
cy.location().should((loc) => {
expect(loc.search).to.eq("?preview=LoginCode");
});
Expand Down
5 changes: 4 additions & 1 deletion apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"cy:run": "cypress run",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"start": "remix-serve ./build/server/index.js",
"test": "start-server-and-test dev http-get://localhost:3000 cy:run",
"test": "run-s test:*",
"test:build": "npm run build",
"test:e2e": "start-server-and-test start http-get://localhost:3000 cy:run",
"typecheck": "tsc"
},
"type": "module",
"prettier": {},
"eslintIgnore": [
"/node_modules",
Expand Down

0 comments on commit 51c3f8c

Please sign in to comment.