Skip to content

Commit

Permalink
feat: update to Cypress 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Aug 25, 2022
1 parent 287ab10 commit de4a483
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
16 changes: 16 additions & 0 deletions generators/app/templates/__cypress._cypress.config.ts
@@ -0,0 +1,16 @@
import { defineConfig } from 'cypress'

export default defineConfig({
videosFolder: 'cypress/videos',
screenshotsFolder: 'cypress/screenshots',
fixturesFolder: 'cypress/fixtures',
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')(on, config)
},
baseUrl: 'http://localhost:4200',
excludeSpecPattern: ['**/*.po.ts'],
},
});
12 changes: 0 additions & 12 deletions generators/app/templates/__cypress._cypress.json

This file was deleted.

@@ -1,8 +1,8 @@
<% if (props.auth) { -%>
import { LoginPage } from './page-objects/login.po';
import { LoginPage } from './page-objects/login.po.cy';
<% } -%>
import { AppSharedPage } from './page-objects/app-shared.po';
import { HomePage } from './page-objects/home.po';
import { AppSharedPage } from './page-objects/app-shared.po.cy';
import { HomePage } from './page-objects/home.po.cy';

describe('when the app loads', () => {
<% if (props.auth) { -%>
Expand Down

0 comments on commit de4a483

Please sign in to comment.