happy-megabyte-98400
10/15/2022, 12:35 PMnarrow-artist-87113
10/15/2022, 12:51 PMnarrow-artist-87113
10/15/2022, 12:53 PMstale-optician-85950
10/15/2022, 12:56 PM.env
file is a file you add yourself to store environment variables and does not get added to source control. It is placed at the root of your project. If you need it for Cypress then use this package to make it work: https://www.npmjs.com/package/cypress-dotenvstale-optician-85950
10/15/2022, 1:01 PMbeforeEach()
hook. You can pass specific parameters from each file if necessary i.e. different users, or you could have multiple custom commands for logging in if they differ greatly. Nice and clean!narrow-artist-87113
10/15/2022, 1:42 PMhappy-megabyte-98400
10/15/2022, 1:50 PMnarrow-artist-87113
10/16/2022, 5:20 AMnarrow-artist-87113
10/16/2022, 5:23 AMnarrow-artist-87113
10/16/2022, 5:29 AMnarrow-artist-87113
10/16/2022, 5:30 AMnarrow-artist-87113
10/16/2022, 5:39 AMnarrow-artist-87113
10/16/2022, 5:39 AMcool-australia-22894
10/16/2022, 6:04 AMnarrow-artist-87113
10/16/2022, 6:10 AMnarrow-artist-87113
10/16/2022, 6:21 AMhandsome-lion-1748
10/16/2022, 10:46 AMcy.intercept('')
) the form submits and I get a login? url because there's no JS then the JS requests are made.cool-australia-22894
10/16/2022, 10:48 AMcy.wait('@login')
will only wait for the first request that matched that intercept I think, so if you try creating several intercepts for the different javascript url's and wait for each of them, it might work better. There is a plugin that says "wait on all requests", and there might be better ways to do it, but this might allow you to get going now at leasthandsome-lion-1748
10/16/2022, 10:59 AMhandsome-lion-1748
10/16/2022, 11:37 AMhandsome-lion-1748
10/16/2022, 11:47 AMhandsome-lion-1748
10/16/2022, 12:31 PMcy.get('@alias.all')
as mentioned in the end of this thread:
https://github.com/cypress-io/cypress-documentation/issues/1573
but no luck, this is really frustraitinghandsome-lion-1748
10/16/2022, 12:35 PMcool-australia-22894
10/16/2022, 12:59 PMhandsome-lion-1748
10/16/2022, 1:00 PMhandsome-lion-1748
10/16/2022, 1:18 PMhandsome-lion-1748
10/16/2022, 1:21 PMhandsome-lion-1748
10/16/2022, 1:27 PMhandsome-lion-1748
10/16/2022, 1:27 PMfuture-terabyte-35712
10/16/2022, 1:41 PMonConnect
in project-base
which then resolves waitForSocketConnection
in run.ts
when running headlessly and not headlessly?
Thanks