Skip to content

Commit afed82e

Browse files
author
Your Name
committed
Angular Testing Course
1 parent e165f5c commit afed82e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

cypress/integration/home.test.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
4+
describe('Home Page', () => {
5+
6+
it('should display a list of courses', () => {
7+
8+
cy.fixture('courses.json').as("coursesJSON");
9+
10+
cy.server();
11+
12+
cy.route('/api/courses', "@coursesJSON").as("courses");
13+
14+
cy.visit('/');
15+
16+
cy.contains("All Courses");
17+
18+
cy.wait('@courses');
19+
20+
cy.get("mat-card").should("have.length", 9);
21+
22+
});
23+
24+
});

0 commit comments

Comments
 (0)