Skip to content

Commit

Permalink
idle network before deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Jun 30, 2024
1 parent 94aac5c commit a16609c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/rbac/maintainer.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const task = new TaskAction();
describe('MAINTAINER permission test suites', () => {
beforeEach(() => {
cy.login(Cypress.env('user_maintainer'), Cypress.env('user_maintainer'));
registerIdleHandler('idle');
});

context('Settings', () => {
Expand All @@ -39,6 +40,7 @@ describe('MAINTAINER permission test suites', () => {

it('Deletes SSH key', () => {
cy.visit(`${Cypress.env('url')}/settings`);
cy.waitForNetworkIdle('@idle', 500);

settings.deleteSshKey(testData.ssh.name);
});
Expand Down

0 comments on commit a16609c

Please sign in to comment.