diff --git a/e2e/cypress/src/cypress.test.ts b/e2e/cypress/src/cypress.test.ts index 9528ea34f777b..8d320461136a9 100644 --- a/e2e/cypress/src/cypress.test.ts +++ b/e2e/cypress/src/cypress.test.ts @@ -158,10 +158,6 @@ describe('env vars', () => { it( 'should run e2e in parallel', async () => { - // ensure ports are free before running tests - await killPort(4200); - await killPort(4201); - const ngAppName = uniq('ng-app'); runCLI( `generate @nx/angular:app ${ngAppName} --e2eTestRunner=cypress --linter=eslint --no-interactive` @@ -171,13 +167,7 @@ describe('env vars', () => { const results = runCLI( `run-many --target=e2e --parallel=2 --port=cypress-auto --output-style=stream` ); - expect(results).toContain('Using port 4200'); - expect(results).toContain('Using port 4201'); expect(results).toContain('Successfully ran target e2e for 2 projects'); - checkFilesDoNotExist( - `node_modules/@nx/cypress/src/executors/cypress/4200.txt`, - `node_modules/@nx/cypress/src/executors/cypress/4201.txt` - ); } }, TEN_MINS_MS