Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: end2end test terminated existing ws (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
maghirardelli authored Aug 31, 2021
1 parent 23f6d03 commit 9c74ac7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main/end-to-end-tests/cypress/integration/workspaces.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ describe('Launch a workspace', () => {
};

const terminatePrexistingWorkspaces = () => {
// Wait until the workspaces information renders
// If there are workspaces, the cards will contain the word "Workspace" in the details table ("Workspace Type" in full)
// If there are not any workspaces, the displayed message is "No research workspaces"
// Both cases will be caught with this contains as it is case insensitive and doesn't match whole words
cy.get('[data-testid=workspaces]').contains('workspace', { matchCase: false });
cy.get('#root').then($body => {
if ($body.find('[data-testid=sc-env-terminate]').length > 0) {
cy.get('#root')
Expand Down

0 comments on commit 9c74ac7

Please sign in to comment.