Skip to content

Commit

Permalink
fix projects afterEach hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis-toboggan-md committed Oct 11, 2024
1 parent 0f4b2bb commit 090884e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/tests/pages/explorer2/project-namespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ describe('Projects/Namespaces', { tags: ['@explorer2', '@adminUser'] }, () => {
});

afterEach(() => {
cy.deleteRancherResource('v3', 'projects', cy.get('@projectName'));
cy.get('@projectName').then((projectName) => {
cy.deleteRancherResource('v3', 'projects', projectName);
});
});
});

Expand Down

0 comments on commit 090884e

Please sign in to comment.