-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I had to do manually: * Add command `npx nx ct` into `angular.json`. * Configure video and screenshot folder paths so they are automatically git ignored.
- Loading branch information
1 parent
ced502d
commit 2f18cd4
Showing
9 changed files
with
40,733 additions
and
17,361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"pluginsFile": "./cypress/plugins/index.ts", | ||
"supportFile": "./cypress/support/index.ts", | ||
"component": { | ||
"testFiles": "**/*.cy-spec.{js,ts,jsx,tsx}", | ||
"componentFolder": "./src", | ||
"videosFolder": "../../dist/cypress/apps/test-project/videos", | ||
"screenshotsFolder": "../../dist/cypress/apps/test-project/screenshots" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { startAngularDevServer } from '@jscutlery/cypress-angular'; | ||
|
||
module.exports = (on, config) => { | ||
on('dev-server:start', (options) => | ||
startAngularDevServer({ options, tsConfig: 'tsconfig.cypress.json' }) | ||
); | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '@jscutlery/cypress-angular/support'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component } from '@angular/core'; | ||
import { mount } from '@jscutlery/cypress-angular/mount'; | ||
|
||
@Component({ | ||
template: `<h1>👋 Hello!</h1>`, | ||
}) | ||
export class GreetingsComponent {} | ||
|
||
describe('greetings', () => { | ||
it('should say hello', () => { | ||
mount(GreetingsComponent); | ||
cy.get('h1').contains('👋 Hello!'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"types": ["cypress"] | ||
}, | ||
"include": ["cypress/support/**/*.ts", "**/*.cy-spec.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.