Skip to content

Commit

Permalink
fix: update navigation e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Kang committed Jul 31, 2020
1 parent 9b2aea1 commit d7b3348
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webui/tests/cypress/integration/02-navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ describe('Navigation', () => {
});

const elmTitleSelector = '#det-main-container div.text-2xl';
const pageTitleSelector = '[class^="Page_title_"]';
const sectionTitleSelector = '[class^="Section_title_"]';
const pageTitleSelector = '[class*="Page_base_"]';
const sectionTitleSelector = '[class*="Section_title_"]';

describe('paths', () => {

it('path / should display dashboard', () => {
cy.visit('/');
cy.get('section h5').contains('Recent Tasks');
cy.get('section h5').contains('Overview');
cy.get(sectionTitleSelector).contains('Recent Tasks');
cy.get(sectionTitleSelector).contains('Overview');
});

it('path /det/dashboard should display dashboard', () => {
cy.visit('/det/dashboard');
cy.get('section h5').contains('Recent Tasks');
cy.get('section h5').contains('Overview');
cy.get(sectionTitleSelector).contains('Recent Tasks');
cy.get(sectionTitleSelector).contains('Overview');
});

it('path /ui/experiments should display experiments', () => {
Expand Down Expand Up @@ -53,12 +53,12 @@ describe('Navigation', () => {

it.skip('path /det/logs should display Master Logs', () => {
cy.visit('/det/logs');
cy.get(sectionTitleSelector).contains('Master Logs');
cy.get(pageTitleSelector).contains('Master Logs');
});

it.skip('path /det/trials/:id/logs should display Trial Logs', () => {
cy.visit('/det/trials/1/logs');
cy.get(sectionTitleSelector).contains('Logs for Trial');
cy.get(pageTitleSelector).contains('Logs for Trial');
});
});

Expand Down

0 comments on commit d7b3348

Please sign in to comment.