cleanup(testing): re-enable cypress e2e tests (#21604)
This commit is contained in:
parent
bca5b70553
commit
0d9997a213
@ -9,8 +9,7 @@ import {
|
||||
|
||||
const TEN_MINS_MS = 600_000;
|
||||
|
||||
// TODO(crystal, @leosvelperez): Still need to investigate why this is failing on CI
|
||||
xdescribe('Cypress E2E Test runner (legacy)', () => {
|
||||
describe('Cypress E2E Test runner (legacy)', () => {
|
||||
beforeAll(() => {
|
||||
newProject({ packages: ['@nx/angular', '@nx/react'] });
|
||||
});
|
||||
|
||||
@ -12,8 +12,8 @@ import {
|
||||
} from '@nx/e2e/utils';
|
||||
|
||||
const TEN_MINS_MS = 600_000;
|
||||
// TODO(crystal, @leosvelperez): Still need to investigate why this is failing on CI
|
||||
xdescribe('Cypress E2E Test runner', () => {
|
||||
|
||||
describe('Cypress E2E Test runner', () => {
|
||||
const myapp = uniq('myapp');
|
||||
|
||||
beforeAll(() => {
|
||||
|
||||
@ -13,14 +13,15 @@ export const promisifiedTreeKill: (
|
||||
|
||||
export async function killPort(port: number): Promise<boolean> {
|
||||
if (await portCheck(port)) {
|
||||
let killPortResult;
|
||||
try {
|
||||
logInfo(`Attempting to close port ${port}`);
|
||||
await kill(port);
|
||||
killPortResult = await kill(port);
|
||||
await new Promise<void>((resolve) =>
|
||||
setTimeout(() => resolve(), KILL_PORT_DELAY)
|
||||
);
|
||||
if (await portCheck(port)) {
|
||||
logError(`Port ${port} still open`);
|
||||
logError(`Port ${port} still open`, JSON.stringify(killPortResult));
|
||||
} else {
|
||||
logSuccess(`Port ${port} successfully closed`);
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user