nice-manchester-42957
07/13/2022, 1:01 PMnice-manchester-42957
07/13/2022, 1:02 PMhandsome-telephone-90688
07/13/2022, 1:12 PMbright-motherboard-31539
07/13/2022, 1:29 PMhandsome-telephone-90688
07/13/2022, 1:36 PMfamous-restaurant-30435
07/13/2022, 1:41 PMfamous-restaurant-30435
07/13/2022, 1:41 PMfamous-restaurant-30435
07/13/2022, 1:42 PMfamous-restaurant-30435
07/13/2022, 1:42 PMlate-planet-4481
07/13/2022, 2:06 PMrhythmic-guitar-55789
07/13/2022, 2:06 PMfaker
in the past with great success. https://fakerjs.dev/api/date.html#betweenacceptable-jordan-87374
07/13/2022, 3:52 PMelegant-psychiatrist-66173
07/13/2022, 7:36 PMjsconfig.json
file so we can get the right import aliasing for cypress component testing? Do I need to write a custom webpack.config
for this even if we are using CRA? Where else can I read about how the devserver is built and set up?gray-beard-8992
07/13/2022, 8:07 PMgray-kilobyte-89541
07/13/2022, 8:48 PMgray-beard-8992
07/13/2022, 8:49 PMgray-kilobyte-89541
07/13/2022, 8:58 PMCypress.env('CF_SECRET')
? How do you pass it to the test runner? Read https://glebbahmutov.com/blog/keep-passwords-secret-in-e2e-tests/breezy-magazine-21205
07/13/2022, 9:19 PMgray-kilobyte-89541
07/13/2022, 10:07 PMconst isProd = Cypress.env('PROD')
if (isProd) {
cy.spy('...').as('foo')
} else {
cy.stub('...', {fixture: }).as('foo')
}
cy.wait('@foo')
gray-beard-8992
07/13/2022, 10:27 PMconst cypressAction = args['--open'] ? cypress.open : cypress.run
const firstCypress = cypressAction({
configFile: process.argv[2],
env: {
CF_SECRET: process.argv[4]
},
}).then((results) => {
console.log('First Cypress has finished')
return results
})
// delay starting the second Cypress instance
// to avoid XVFB race condition
const secondCypress = wait(5000).then(() => {
console.log('starting the second Cypress')
return cypressAction({
configFile: process.argv[3],
env: {
CF_SECRET: process.argv[4]
},
})
})
And then in the GitHub .yaml file I have this, which I thought would be passing CF_SECRET to the test runner as the 4th parameter:
npm run ${{ matrix.test }} cypress-dev-user1TipChatNotice.config.js cypress-dev-user2TipChatNotice.config.js ${{ secrets.GHA_CF_SERVICE_ACCESS_TOKEN }}
Also, tried this:
removed from test runner:
env: {
CF_SECRET: process.argv[4]
},
and in .yaml in Gitghub have this:
CYPRESS_CF_SECRET=${{ secrets.GHA_CF_SERVICE_ACCESS_TOKEN }}
npm run ${{ matrix.test }} cypress-dev-user1TipChatNotice.config.js cypress-dev-user2TipChatNotice.config.js
I also upgraded to 10.3.0 and now the certification error is gone but in both ways above I am getting a cross-origin error for https://google.com. Am I supposed to use` cy.origin` somewhere when I am trying to bypass the cloudflare authorization?breezy-magazine-21205
07/13/2022, 11:59 PMgray-kilobyte-89541
07/14/2022, 12:01 AMCypress.env('CF_SECRET')
is not setenough-honey-34178
07/14/2022, 12:05 AMafter(sendTestAttributes)
doesn't appear to run?famous-fireman-83662
07/14/2022, 8:35 AMmelodic-jordan-92756
07/14/2022, 8:53 AMbrief-candle-53311
07/14/2022, 9:51 AMbrief-candle-53311
07/14/2022, 9:51 AMrhythmic-guitar-55789
07/14/2022, 10:18 AMrhythmic-guitar-55789
07/14/2022, 10:20 AMcypress.config.js
in particular the part where you added the new variable.billions-shampoo-89711
07/14/2022, 12:13 PM