Skip to content

Commit

Permalink
chore: Making intermittent test stable
Browse files Browse the repository at this point in the history
It was failing in the builds a lot when the loading took more than the static 50 ms. This change waits for the element to be visible therefore making it more stable.
  • Loading branch information
StaNov committed Jan 23, 2025
1 parent e501446 commit ef9b195
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions e2e/cypress/e2e/userSettings/userSettings.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ describe('User settings', () => {

it('Accesses api keys', () => {
cy.xpath("//*[@aria-controls='user-menu']").click();
cy.wait(50);
cy.xpath(getAnyContainingText('Api keys')).click();
cy.xpath(getAnyContainingText('Api keys')).should('be.visible').click();
});

it('Opens user menu from projects', () => {
Expand Down

0 comments on commit ef9b195

Please sign in to comment.