Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joluj committed Jun 15, 2021
1 parent 3e7524b commit 53548d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/cypress/integration/exploration/exploration.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ context('Exploration', () => {
cy.get('.Previews');

const layoutsDataValues = Object.values(layoutsData);
cy.get('.LayoutPreview').each(($el, index) => {
cy.wrap($el).should('have.text', layoutsDataValues[index].description);
});
for (const layoutsDataValue of layoutsDataValues) {
cy.get('.LayoutPreview').contains(layoutsDataValue.description);
}
});

it('routes to graph page', () => {
cy.get('.Previews');
cy.get('.LayoutPreview').eq(0).click();
cy.get('.LayoutPreview').contains('Structural Layout').click();
cy.url().should('eq', `http://localhost:3000${layoutsData.C.path}`);
});

it('routes to hierarchical page', () => {
cy.get('.Previews');
cy.get('.LayoutPreview').eq(2).click();
cy.get('.LayoutPreview').contains('Hierarchical Layout').click();
cy.url().should('eq', `http://localhost:3000${layoutsData.H.path}`);
});

Expand Down

0 comments on commit 53548d8

Please sign in to comment.