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

Commit

Permalink
fix: e2etest cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketD92 committed Nov 13, 2023
1 parent 9567894 commit 7f17e2f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 57 deletions.
29 changes: 0 additions & 29 deletions main/end-to-end-tests/checkConnection.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ describe('Launch new workspaces', () => {
navigateToWorkspaces();
terminateWorkspaces();
});
after(() => {
terminateWorkspaces();
});

let expectedNumberOfNewlyOpenBrowserWindows = 0;

Expand All @@ -50,6 +47,8 @@ describe('Launch new workspaces', () => {
cy.window()
.its('open')
.should('have.callCount', expectedNumberOfNewlyOpenBrowserWindows);

terminateWorkspaces();
});

function checkWindows(workspaceName) {
Expand Down Expand Up @@ -136,14 +135,4 @@ describe('Launch new workspaces', () => {
.find('[data-testid=sc-environment-generate-url-button]', { timeout: 60000 })
.click();
}

/**
* This test checks that the connection library we're using works correctly.
*/
it('checkConnection should work correctly', () => {
// 8.8.8.8 is Google's DNS server
cy.exec(`node checkConnection.js 8.8.8.8 443`)
.its('code')
.should('equal', 0);
});
});
8 changes: 1 addition & 7 deletions main/end-to-end-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion main/end-to-end-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"lodash": "^4.17.21",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"tcp-ping": "^0.1.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react": "^7.28.0"
},
Expand Down
7 changes: 0 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f17e2f

Please sign in to comment.