handsome-telephone-90688
05/19/2022, 12:33 PMblue-bird-1589
05/19/2022, 12:34 PMhandsome-telephone-90688
05/19/2022, 12:36 PMhandsome-telephone-90688
05/19/2022, 12:51 PMhundreds-spring-479
05/19/2022, 2:16 PMgray-kilobyte-89541
05/19/2022, 2:28 PMmagnificent-finland-58048
05/19/2022, 4:29 PMmagnificent-finland-58048
05/19/2022, 4:31 PMmagnificent-finland-58048
05/19/2022, 4:34 PM"experimentalSessionAndOrigin": true
in cypress.json
try something like this command
https://github.com/muratkeremozcan/auth0-cypress/blob/master/cypress/support/commands.jsicy-activity-78738
05/19/2022, 5:53 PMambitious-petabyte-71482
05/20/2022, 7:24 AMbland-lamp-18095
05/20/2022, 9:23 AMts
export default ((on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}) as Cypress.PluginConfig
I'm using typescript.
When I run it on my machine it's working but when I use cypress-io/github-action@v2
in my github actions I get the following error:
bash
Your pluginsFile is invalid: /home/runner/work/XX/XX/frontend/cypress/plugins/index.ts
It threw an error when required, check the stack trace below:
/home/runner/work/XX/XX/frontend/cypress/plugins/index.ts:14
export default ((on, config) => {
^^^^^^
SyntaxError: Unexpected token 'export'
My cypress config file is empty. What's the problem?billowy-bird-41053
05/20/2022, 9:27 AMit('should successfully submit a valid file', () => {
cy.get('@evidenceIframe')
.find(benEvidenceTypeDropdown)
.find('[value="5"]')
.should('not.be.disabled')
cy.get('@evidenceIframe')
.find(benEvidenceTypeDropdown)
.select(5);
I'm new to cypress so please forgive me if this is poorly writtenhandsome-telephone-90688
05/20/2022, 12:41 PMbroad-salesclerk-78343
05/20/2022, 1:11 PMkind-artist-70775
05/20/2022, 2:18 PMkind-artist-70775
05/20/2022, 2:19 PMkind-artist-70775
05/20/2022, 2:20 PMcypress.json
I believe is configured correctly:
json
{
"downloadsFolder": "test/integration/downloads",
"fixturesFolder": "test/fixtures",
"commandsFolder": "test/integration/support",
"integrationFolder": "test/integration",
"screenshotsFolder": "test/integration/screenshots",
"testFiles": "test/integration/**/*.test.{ts.tsx}",
"pluginsFile": "test/integration/plugins/index.ts",
"component": {
"testFiles": "**/test/integration/**/*.test.{ts,jsx,tsx}",
"componentFolder": "test/fixtures"
},
}
kind-artist-70775
05/20/2022, 2:21 PMtest/integration
directory but then doesn't see it 😦kind-artist-70775
05/20/2022, 2:24 PMnpx cypress open
and not npx cypress open-ct
(as I do want to do component testing atm) but doing that blows up with an error relating to my vite.config.ts
file:
> Cannot find module './comment_char.js'kind-artist-70775
05/20/2022, 2:25 PMopen-ct
which will use ViteJS? or will open
leverage that too?kind-artist-70775
05/20/2022, 2:27 PMkind-artist-70775
05/20/2022, 2:54 PMkind-artist-70775
05/20/2022, 2:56 PM*.test.ts
not sure how literally to take itkind-artist-70775
05/20/2022, 2:57 PM*.spec.ts
convention makes no differencekind-artist-70775
05/20/2022, 3:02 PMChainable<Subject>
on hot-module replacement ... meaning all of your custom commands are not only available at run time but automatically and fully typed (including JSDocs)kind-artist-70775
05/20/2022, 3:03 PMkind-artist-70775
05/20/2022, 3:06 PMadventurous-dream-20049
05/20/2022, 3:21 PMmagnificent-finland-58048
05/20/2022, 3:23 PM