From e38137bfea75d3f8923f319a47e323521b1fcc9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Thu, 9 Nov 2017 13:14:49 +0100 Subject: [PATCH] tests(e2e): expect only 2 courses --- test/e2e/specs/the-example-app-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/the-example-app-spec.js b/test/e2e/specs/the-example-app-spec.js index 2487a57..ad18034 100644 --- a/test/e2e/specs/the-example-app-spec.js +++ b/test/e2e/specs/the-example-app-spec.js @@ -109,7 +109,7 @@ describe('The Example App', () => { it('renders course overview', () => { cy.visit('/courses') - cy.get('.course-card').should('have.length.gte', 3, 'renders at least 3 courses') + cy.get('.course-card').should('have.length.gte', 2, 'renders at least 2 courses') cy.get('.layout-sidebar__sidebar-header > h2').should('contain', 'Categories', 'Shows category title in sidebar') cy.get('.sidebar-menu__list > .sidebar-menu__item:first-child').should('contain', 'All courses', 'Shows all courses link') cy.get('.sidebar-menu__list > .sidebar-menu__item').should('have.length.gte', 2, 'renders at least one category selector')