chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { runCLI, runE2ETests } from '@nx/e2e-utils';
|
||||
import {
|
||||
setupCypressComponentTests,
|
||||
cleanupCypressComponentTests,
|
||||
CypressComponentTestsSetup,
|
||||
} from './cypress-component-tests-setup';
|
||||
|
||||
describe('Angular Cypress Component Tests - App', () => {
|
||||
let setup: CypressComponentTestsSetup;
|
||||
|
||||
beforeAll(async () => {
|
||||
setup = setupCypressComponentTests();
|
||||
});
|
||||
|
||||
afterAll(() => cleanupCypressComponentTests());
|
||||
|
||||
// TODO(jack): re-enable when lodash@4.18.0 assignWith bug is resolved
|
||||
it.skip('should test app', () => {
|
||||
const { appName } = setup;
|
||||
|
||||
runCLI(
|
||||
`generate @nx/angular:cypress-component-configuration --project=${appName} --generate-tests --no-interactive`
|
||||
);
|
||||
if (runE2ETests('cypress')) {
|
||||
expect(runCLI(`component-test ${appName}`)).toContain(
|
||||
'All specs passed!'
|
||||
);
|
||||
}
|
||||
}, 300_000);
|
||||
});
|
||||
Reference in New Issue
Block a user