red-toddler-79937
02/13/2023, 5:23 AMhtml
<div class="flex flex-row p-2 text-sm border rounded box w-fit" data-testid="add-ons-label">
{{ name }} - {{ priceInCents / 100 | currency }}
</div>
My Cypress file:
ts
cy.findAllByTestId('add-ons-label').first().should('have.text', ' Cola - € 0,02\n');
Thank you in advance!purple-afternoon-2408
02/14/2023, 6:14 AMacceptable-oxygen-27042
02/14/2023, 3:13 PMechoing-tent-95037
02/15/2023, 4:45 PMcypress-downloadfile
package? Wasn't sure if there was a native way with Cypress, from a quick look at cypress.io documentation I didn't see anything.mysterious-jackal-38863
02/16/2023, 12:46 PMcrooked-megabyte-18846
02/17/2023, 3:13 PMmelodic-artist-76036
02/20/2023, 4:36 PMcy.origin
and require
to import dependencies. Those dependencies are local modules (page objects) which I need for assertions. Locally, everything works like a charm, but on CI I get this error:
Error: Error: ENOENT: no such file or directory, open '/tmp/cypress/webpack-preprocessor/36c17fa865a97b9d11c9436638e044d7/cross-origin-cb-948eb7e9dc3ceb4e5222da0c9c591d18.js'
Now before posting the whole setup, does anyone have an idea what could be the issue here? It seems it can not find the sources required for cross origin callbacks.most-baker-72677
02/22/2023, 12:09 PMcypress.env.json
file in the root of the project that contains AGENT_API_KEY = key
When I commit the project this cypress.env.json
file will contain AGENT_API_KEY = <your api key>
as each developer will need to put in their own api key.
In the gitHub actions pipeline I will use:
env:
CYPRESS_AGENT_API_KEY: ${{ secrets.CYPRESS_AGENT_APIKEY }}
Looking at the docs I am finding it a little difficult to predict whether the CYPRESS_
will be dropped, case maintained or normalised in someway. What should happen in this case?
I am working on the basis that the env
variable in the action will be preferred to the cypress.env.json
in this casebumpy-intern-64580
02/25/2023, 5:04 AMnarrow-coat-44595
02/27/2023, 5:22 AMechoing-tent-95037
03/01/2023, 5:53 PMnarrow-coat-44595
03/02/2023, 7:45 AMbusy-tailor-13324
03/02/2023, 6:02 PMstraight-grass-43954
03/03/2023, 10:32 PMsilly-journalist-41771
03/05/2023, 7:03 PMechoing-hamburger-46900
03/06/2023, 5:13 PMshy-ambulance-32896
03/07/2023, 5:16 PMstocky-grass-9933
03/08/2023, 8:44 PMagreeable-alligator-92650
03/09/2023, 3:19 PMfancy-painting-32155
03/09/2023, 8:31 PMagreeable-lamp-9666
03/12/2023, 9:35 AMbusy-agency-3812
03/13/2023, 9:02 PMbitter-match-90736
03/16/2023, 8:38 AMechoing-hamburger-46900
03/16/2023, 12:02 PMbulky-iron-63109
03/16/2023, 1:38 PMfreezing-midnight-9121
03/16/2023, 2:17 PMrough-jordan-79228
03/17/2023, 2:02 PMechoing-hamburger-46900
03/22/2023, 11:12 AMbulky-iron-63109
03/22/2023, 4:55 PMagreeable-motorcycle-46564
03/22/2023, 9:33 PMagreeable-motorcycle-46564
03/22/2023, 9:33 PM