Skip to content

Commit

Permalink
chore: fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jul 25, 2024
1 parent a8fd84f commit 8691b76
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
3 changes: 0 additions & 3 deletions cypress/e2e/tab_picker.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ describe('tab-picker', () => {
cy.findByRole('listbox', { name: /available/i }).select('atdata');
cy.findByRole('option', { name: /active transportation/i }).dblclick();

cy.findByRole('listbox', { name: /available/i }).select('ato');
cy.findByRole('option', { name: /access to opportunities/i }).dblclick();

cy.findByRole('alert', { text: /maximum/i }).should('be.visible');
});
});
17 changes: 9 additions & 8 deletions cypress/e2e/tabs.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,20 @@ describe('tabs', () => {
});
});

it('layer selector is hidden and shown appropriately', () => {
cy.loadApp();
// this is no longer relevant since they do not hide the layer selector on any tab currently
// it('layer selector is hidden and shown appropriately', () => {
// cy.loadApp();

cy.get('.esri-ui #layer-selector').should('not.exist');
// cy.get('.esri-ui #layer-selector').should('not.exist');

cy.findByLabelText('Transportation Tab').click();
// cy.findByLabelText('Transportation Tab').click();

cy.get('.esri-ui #layer-selector').should('exist');
// cy.get('.esri-ui #layer-selector').should('exist');

cy.findByLabelText('Vision Tab').click();
// cy.findByLabelText('Vision Tab').click();

cy.get('.esri-ui #layer-selector').should('not.exist');
});
// cy.get('.esri-ui #layer-selector').should('not.exist');
// });

it('drag and drop to rearrange tabs', () => {
cy.loadApp();
Expand Down

0 comments on commit 8691b76

Please sign in to comment.