Skip to content

Commit 8889f38

Browse files
author
Rafael Fernandez Serra
committed
build(cypress-runner): bump cypress-runner from 2.0.0 to 3.0.0 on example
1 parent a76654e commit 8889f38

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

example/cypress.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
video: false,
5+
e2e: {
6+
// We've imported your old cypress plugins here.
7+
// You may want to clean this up later by importing these.
8+
setupNodeEvents(on, config) {
9+
return require('./cypress/plugins/index.js')(on, config);
10+
},
11+
baseUrl: 'http://localhost:4000',
12+
},
13+
});

example/cypress.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

example/cypress/integration/example_spec.js renamed to example/cypress/e2e/example.cy.js

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,29 @@ describe('example app', () => {
1111

1212
it('renders angularjs', () => {
1313
cy.visit('');
14-
cy
15-
.get('a')
16-
.contains('app.ng1')
17-
.click();
14+
cy.get('a').contains('app.ng1').click();
1815
cy.url().should('include', '#!/ng1');
1916
cy.contains('ng1 component');
2017
});
2118

2219
it('renders angular', () => {
2320
cy.visit('');
24-
cy
25-
.get('a')
26-
.contains('app.ng2')
27-
.click();
21+
cy.get('a').contains('app.ng2').click();
2822
cy.url().should('include', '#!/ng2');
2923
cy.contains('ng2 component');
3024
});
3125

3226
it('renders angular inside angularjs', () => {
3327
cy.visit('');
34-
cy
35-
.get('a')
36-
.contains('app.ng1.ng2')
37-
.click();
28+
cy.get('a').contains('app.ng1.ng2').click();
3829
cy.url().should('include', '#!/ng1/ng2');
3930
cy.contains('ng1 component');
4031
cy.contains('ng2 component');
4132
});
4233

4334
it('renders angular inside angular', () => {
4435
cy.visit('');
45-
cy
46-
.get('a')
47-
.contains('app.ng2.ng2')
48-
.click();
36+
cy.get('a').contains('app.ng2.ng2').click();
4937
cy.url().should('include', '#!/ng2/ng2');
5038
cy.contains('ng2 component');
5139
});

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"zone.js": "0.11.4"
3636
},
3737
"devDependencies": {
38-
"@uirouter/cypress-runner": "^2.0.0",
38+
"@uirouter/cypress-runner": "^3.0.0",
3939
"ts-loader": "9.4.2",
4040
"webpack": "5.64.4",
4141
"webpack-cli": "^4.9.1",

0 commit comments

Comments
 (0)