I want to add custom functions to a synpress project. (Synpress is a wrapper around Cypress which allows interaction with Metamask). Note there is a question: Cypress custom command is not recognized when invoked but even though I read through this QA, my custom functions are not recognized. This is my project setup. From the answer mentioned before All the
Tag: e2e-testing
Cypress is not running in ci SyntaxError: Unexpected token ‘export’ with cypress-io/github-action@v2 typescript
I have the following plugin file for cypress: frontend/cypress/plugins/index.ts: 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: This is my .github/workflows/cypress-tests.yml: My frontend/cypress.json config file is empty. This is my frontend/cypress/tsconfig.json in the cypress folder: This frontend/cypress/plugins/tsconfig.jsonis inside the Plugins folder: I have copied this
Playwright Select frame with dynamic name
I need to access an iframe in playwright that has a name that is automatically generated. The iframe’s name is always prefixed by “__privateStripeFrame” and then a randomly generated number How i can access the frame with the page.frame({name: }) ? From the docs it seems like i can’t use a regular expression! Answer The frameSelector doesn’t need be specified
Testcafe Getting all Cookies from domain, store them in Object / Array and check if the Names of the Cookies are in an Array
I am new to Testcafé and need to get all Cookies from a Website, store them in an Object or Array and see, if the name of the Cookie matches against an Array of Strings to see if some Cookies are set; this needs to be done in Typescript; in pure Javascript would be easier, but these are the Requirements.
Has anyone integrated Test Rail with Cypress ? I am looking to auto update the status of test case
I am trying to integrate test rail with cypress to auto update the Test Case status. I followed the steps as mentioned: https://www.npmjs.com/package/cypress-testrail-reporter But I see the following error in cypress run: EPROTO 140623370270312:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:581: Is this because the Test Rail set up done in domain? Answer Please add the following configurations in cypress.json } Do let me know if
Cypress: Run all specs but create a loop without run specs
I have a problem with Cypress.io, here is my problem : I have 4 different test files here : integration/socle_full_ts_dev/1_register_user.spec.js integration/socle_full_ts_local/1_register_user_local.spec.js integration/socle_full_ts_local/2_login_user_local.spec.js integration/socle_full_ts_dev/2_login_user.spec.js And the problem that I meet is that when I want to launch all the tests at the same time it turns in a loop and does not get out of it. I checked the web to
Testcafe filter function
I have a filter function for Selector as following which accepts two parameters { subject: subject, from: from } as a dependencies object. But after running this function, I am getting an error ReferenceError: subject is not defined Can TestCafe team please help me with this? Answer In the case of the .filter method you need to rewrite your dependencies
How to reuse a function from an existing Cypress test, and call it in a new one?
I have the following function, which is inside a parent function. I have many uses for this random string generator, inside of other test files for different scenarios. Instead of having to copy and paste this each time, I want to reuse this function and call it inside another test file. How should I set this up? I tried to
How do i use/print the value inside a generic attribute in TestCafe
What I’m trying to do is print/use the value of the Polyline attribute. I’ve tried to get them with these methods: This is an util function This is inside the test script or And I include my selectors external But all I get is a promise as output in the console log Promise { } or ReExecutablePromise { _then: [],
How to fill an input field using Puppeteer?
I’m using Puppeteer for E2E test, and I am now trying to fill an input field with the code below: It worked, but I found the email address was typed into the field one character by one character as if a real human being was typing. Is it possible to fill the input field with the email address all at