Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 76a9781

Browse files
author
Pablo Huerta
committed
Fixed home carousel test
1 parent 9891022 commit 76a9781

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

cypress/integration/app-home.spec.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,15 @@ describe('Home Page', function () {
162162
});
163163

164164
it('The "Our Process" Carousel automatically rotates through all 5 slides and then started over', function () {
165-
cy.get('app-carousel-indicators').within(() => {
166-
cy.get('.carousel-main-indicators > .carousel-indicators > [data-slide-to="0"]').click();
167-
cy.get('[data-cy=capp-head]').contains('Discovery');
168-
// Wait for carousel list el to change on the page
169-
cy.wait(2000);
170-
cy.wait(2000);
171-
cy.wait(2000);
172-
cy.wait(2000);
173-
cy.wait(2000);
174-
cy.get('[data-cy=capp-head]').contains('Discovery');
175-
});
165+
cy.get('.carousel-main-indicators > .carousel-indicators > [data-slide-to="0"]').click();
166+
cy.get('[data-cy=capp-head] > .hydrated').contains('Discovery');
167+
// Wait for carousel list el to change on the page
168+
cy.wait(5000);
169+
cy.wait(5000);
170+
cy.wait(5000);
171+
cy.wait(5000);
172+
cy.wait(5000);
173+
cy.get('[data-cy=capp-head] > .hydrated').contains('Discovery');
176174
});
177175

178176
it('The carousel displays the correct image and content on all five slides', function () {

0 commit comments

Comments
 (0)