Skip to content

Commit a6c1b2f

Browse files
committedMar 11, 2022
fix e2e tests
1 parent 2ebb9d8 commit a6c1b2f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { getGreeting } from '../support/app.po';
1+
import { getHeader } from '../support/app.po';
22

33
describe('app1', () => {
44
beforeEach(() => cy.visit('/'));
55

6-
it('should display welcome message', () => {
6+
it('should display header', () => {
77
// Custom command example, see `../support/commands.ts` file
88
cy.login('my-email@something.com', 'myPassword');
99

1010
// Function helper example, see `../support/app.po.ts` file
11-
getGreeting().contains('Welcome app1');
11+
getHeader().contains('Angular + Tailwind CSS + Nx');
1212
});
1313
});

‎apps/app1-e2e/src/support/app.po.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const getGreeting = () => cy.get('h1');
1+
export const getHeader = () => cy.get('header');
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { getGreeting } from '../support/app.po';
1+
import { getHeader } from '../support/app.po';
22

33
describe('app2', () => {
44
beforeEach(() => cy.visit('/'));
55

6-
it('should display welcome message', () => {
6+
it('should display header', () => {
77
// Custom command example, see `../support/commands.ts` file
88
cy.login('my-email@something.com', 'myPassword');
99

1010
// Function helper example, see `../support/app.po.ts` file
11-
getGreeting().contains('Welcome app2');
11+
getHeader().contains('Angular + Tailwind CSS + Nx');
1212
});
1313
});

‎apps/app2-e2e/src/support/app.po.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const getGreeting = () => cy.get('h1');
1+
export const getHeader = () => cy.get('header');

0 commit comments

Comments
 (0)
Please sign in to comment.