Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadkitenge committed Jan 9, 2025
1 parent 637ac22 commit 6da7c90
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions cypress/e2e/with_mock_data/systems.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,25 @@ describe('Systems', () => {
});
});

it('edits a system from a landing page', () => {
it.only('edits a system from a landing page', () => {

Check failure on line 580 in cypress/e2e/with_mock_data/systems.cy.ts

View workflow job for this annotation

GitHub Actions / Lint & Unit Tests

it.only not permitted
Cypress.on('uncaught:exception', (err) => {
// we expect a 3rd party library error with message 'list not defined'
// and don't want to fail the test so we return false

console.log(err.message);
if (err.message.includes('ResizeObserver')) {
return false;
}
// we still want to ensure there are no other unexpected
// errors, so we let them fail the test
});
cy.visit('/systems/65328f34a40ff5301575a4e3');

cy.findByRole('button', { name: 'systems page actions menu' }).click();
cy.findByText('Edit').click();
cy.findByRole('menuitem', { name: 'Edit' }).should('exist');
cy.findByRole('menuitem', { name: 'Edit' }).click();

cy.findByRole('dialog', { name: 'Edit System' }).should('exist');

cy.findByLabelText('Name *').clear();
cy.findByLabelText('Name *').type('System name');
Expand Down

0 comments on commit 6da7c90

Please sign in to comment.