Skip to content

Commit

Permalink
fix navigation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anamontiaga committed Apr 11, 2024
1 parent a4d9d23 commit 4ae2b3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/cypress/e2e/navigation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('navigation', () => {
});

it('access to project detail page and switch dashboard', () => {
cy.visit('/');
cy.visit('/').wait(10000);
cy.get('[data-cy="projects-list-tab"]').click();
cy.get('a[data-cy="project-item-link"]').first().click();
cy.get('button[data-cy="project-dashboard-button"]').click().wait(1000);
Expand All @@ -16,14 +16,14 @@ describe('navigation', () => {
});

it('access to country detail page', () => {
cy.visit('/').wait(1000);
cy.get('a[data-cy="sidebar-tab-countries"]').click().wait(10000);
cy.visit('/').wait(10000);
cy.get('a[data-cy="sidebar-tab-countries"]').click({ force: true }).wait(1000);
cy.get('a[data-cy="country-item-link"]').first().click();
cy.get('[data-cy="country-detail-name"]').should('exist');
});

it('access to datasets and displays an info dialog', () => {
cy.visit('/');
cy.visit('/').wait(10000);
cy.get('a[data-cy="sidebar-tab-datasets"]').click().wait(1000);
cy.get('button[data-cy="info-soil-carbon-density-button"]').click();
cy.get('div[data-cy="info-soil-carbon-density-dialog"]').should('exist');
Expand Down

0 comments on commit 4ae2b3a

Please sign in to comment.