Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJW34 committed Dec 14, 2021
1 parent ca22e85 commit 0325f26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/app/cypress/e2e/integration/code-gen.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ describe('Code Generation', () => {
const componentGlob = '**/*.{jsx,tsx}'

cy.findByTestId('file-match-button').contains(componentGlob)
checkCodeGenCandidates(['Button.jsx', 'Button.stories.jsx'])
checkCodeGenCandidates(['App.cy.jsx', 'App.jsx', 'index.jsx', 'Button.jsx', 'Button.stories.jsx'])

cy.intercept('query-ComponentGeneratorStepOne').as('code-gen-candidates')
cy.findByTestId('file-match-button').click()
cy.get(extensionInputSelector).clear().type('**/App.*')
cy.wait('@code-gen-candidates')

checkCodeGenCandidates(['App.css', 'App.cy.js', 'App.js'])
checkCodeGenCandidates(['App.css', 'App.cy.jsx', 'App.jsx'])

cy.get(extensionInputSelector).clear().type(componentGlob, { parseSpecialCharSequences: false })
cy.contains('Button.jsx').click()
Expand Down
2 changes: 1 addition & 1 deletion system-tests/projects/react-code-gen/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
testFiles: '**/*.cy.{js,jsx}',
componentFolder: 'cypress/component-tests',
componentFolder: 'src',
supportFile: 'cypress/component/support.js',
component: {
devServer (cypressConfig, devServerConfig) {
Expand Down

0 comments on commit 0325f26

Please sign in to comment.