Skip to content

Commit

Permalink
test: Clear notifications after saving credentials in e2e tests
Browse files Browse the repository at this point in the history
Often the "Credential saved" notification is left floating over other elements
that prevent the test from continuing until the notification goes away. This
should speed up the e2e tests a tiny wee bit.
  • Loading branch information
tomi committed Jan 15, 2025
1 parent dc8aaab commit 4932f56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/composables/modals/credential-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Getters
*/

import { clearNotifications } from '../../pages/notifications';

export function getCredentialConnectionParameterInputs() {
return cy.getByTestId('credential-connection-parameter');
}
Expand Down Expand Up @@ -55,5 +57,6 @@ export function setCredentialValues(values: Record<string, string>, save = true)
if (save) {
saveCredential();
closeCredentialModal();
clearNotifications();
}
}

0 comments on commit 4932f56

Please sign in to comment.