9,953 questions
0
votes
0
answers
14
views
Even if text issue prefixes is mentioned in cypress.config.js, Qytera-Gmbh/cypress-xray-plugin failed to upload result to xray
I have JIRA and xray integrated into my project. The project key is "ABC". prefixes for XRAY is "TEST_". I have integrated https://qytera-gmbh.github.io/projects/cypress-xray-...
0
votes
0
answers
13
views
Recaptcha v2 - test key is not working in Cypress
While testing recaptcha in cypress, the default test key which is provided by google recaptcha is not working. I'm not sure whether this error coming from Cypress or google Recaptcha.
I have tried ...
0
votes
0
answers
32
views
How to handle a button which is in new window using cypress
Using Cypress, I need to click on a button in an iframe and also the button which appears in a new window and verify the status.
I am executing below steps:
Click on a button which is in an iframe ...
0
votes
2
answers
37
views
Misunderstanding of "before" in Cypress
i'm new to Cypress and i'm trying to test my home page.
The before and beforeEach functions don't work the same way that Cypress describes in my project. According to Cypress:
before(() => {
// ...
0
votes
0
answers
15
views
Allure results not generated in Cypress
I'm having trouble getting Allure results to generate in my Cypress project. Despite following the setup instructions, the allure-results directory remains empty after running my tests. Here are the ...
0
votes
0
answers
16
views
How to separate Jenkins report of Cypress tests from "(root)" to browser's name?
In the last couple of weeks I've replaced my test framework from the deprecated Protractor into Cypress.
Back when we used Protractor, the reports on Jenkins separated the tests to browsers, like this ...
0
votes
0
answers
23
views
Cypress test runner displays a different message than in the actual UI [closed]
I am doing some negative testing on the log in page. If I input an invalid username/password the error message that is being displayed is "Username/password is incorrect" but when I execute ...
0
votes
0
answers
43
views
Does Cypress Support Intercepting WebSocket Req and Mock response? [closed]
I might need to mock WebSocket API Response for one of the operation from Cypress for one feature testing and I saw this thread for WebSocket on Cypress https://github.com/cypress-io/cypress/issues/...
1
vote
0
answers
29
views
Error : no such file or directory with Cypress when running a .feature file [closed]
I’m facing an issue with Cypress and the Cucumber preprocessor. When I try to run a test based on a .feature file, Cypress throws the following error:
Error: ENOENT: no such file or directory, stat '...
1
vote
3
answers
42
views
Can I catch a CypressError (test failure) to try another test instead?
I am testing a payment screen in Cypress. We have two third-party payment systems, and when the user pays, they will go from my site to the payment provider and then back to my site. For the purposes ...
0
votes
0
answers
35
views
Cypress - Cucumber - JsonPath - Error: Can't walk dependency graph: Cannot find module '..' from [closed]
I'm setting up a typescript - cypress - cucumber project. In my project, I need to use jsonPath to analyze data. But, It doesn't work together. It shows the error:
Error: Can't walk dependency graph: ...
0
votes
1
answer
34
views
cypress-tags and cypress run both failing to executed only tagged test cases in cypress-cucumber framework
I tried cypress-tags and cypress run commands to execute tagged test cases but both are failing. can someone guide for solution?
dependancy versions:
"@badeball/cypress-cucumber-preprocessor"...
-1
votes
0
answers
26
views
Cypress assertion is not working for French String [closed]
I am attempting to verify the same text, but why is it throwing an error?
expect("La lettre d’autorisation du concessionnaire AuctionACCESS n’a pas été reçue. Si un bouton « Resolve » (Résoudre) ...
0
votes
0
answers
17
views
How to run cypress test cases and save generated reports on Jenkins pipeline
I have written cypress test case to compare snapshots coming through two apis. If there is any difference in both the snapshots, It should show those difference and store the test report in Jenkins ...
-3
votes
0
answers
22
views
Unsure how to replace hardcoded regex with one from a variable in my Cypress test [closed]
I have the following code
checkLocationsInTable(location) {
cy.datacy('locationCell').each(($el) => {
cy.wrap($el).invoke('text').should('match', /Cheltenham \(Remote\)|Home/i)
...
0
votes
0
answers
23
views
error in cypress typescript cucumber setup only when if there is parameter in feature file
I have installed a cypress under my angular repository where I have configured cucumber using @badeball/cypress-cucumber-preprocessor for processing the feature file. feature file executes well if i ...
0
votes
1
answer
33
views
Cypress can't seem to get the URL value after removing target attribute, despite the page loading fine
I want Cypress to check that the link to a page is correct by clicking that links and seeing if the URL contains a certain string.
For that, I've created the function:
checkLink = (linkEl, ...
0
votes
1
answer
32
views
In cypress, I wanted to execute a flow based on a web locator visiblity. How to achieve it? [duplicate]
In my web page I have a locator which is identified by...
cy.get('.app-text')
In my case, I want to execute different flows based on the visibility of the above locator in the page.
If above locator ...
0
votes
1
answer
28
views
Cypress test - Stripe elements are not loading - Chrome browser [closed]
I'm new to cypress, I have Next.js application with stripe payment gateway setup, I'm trying to test the stripe elements in cypress, When i open the page, stripe elements are not loading, But when i ...
0
votes
1
answer
39
views
Azure pipeline fails to store cypress screenshots and videos - ##[error]Path does not exist: D:\a\1\s\cypress\screenshots [closed]
Hi I am trying to run cypress tests on azure pipelines and tests run fine but I am having trouble with screen shots and videos.
I get the error ---- ##[error]Path does not exist: D:\a\1\s\cypress\...
0
votes
0
answers
29
views
Cypress unable to find steps definition after changing the file directory [duplicate]
Hi can anyone help me how to fix this error message I'm getting on Cypress, Currently I'm getting an error upon changing my step_definitions file directory from
"cypress\support\step_definitions&...
0
votes
0
answers
29
views
cypress-xray plugin is failing to create/update Test execution [closed]
I am using plugin https://qytera-gmbh.github.io/projects/cypress-xray-plugin/section/configuration/jira/#__tabbed_7_1 for achieving cypress-xray integration for automated test result upload to xray. ...
-1
votes
1
answer
52
views
Attribute value changes from false to true to false upon click. Then cypress runs into timeout- [closed]
I have a table with lots of sections. Within the sections there is a table and for each row of the table a checkbox. Upon clicking on the checkbox the following attribute 'data-e2e-table-loading' ...
4
votes
4
answers
85
views
cypress intercept to catch everything except baseUrl calls
I have a single page application running in http://localhost:3001 and I have set the baseUrl as such.
Now, I would like to intercept all the external calls, so the ones going elsewhere than localhost:...
3
votes
1
answer
58
views
Cypress - How to only click button if it contains "chevron_right"
This button has 2 states, "chevron_right" when disabled. And "expand_more" when enabled.
Its default state is "chevron_right"
The following code will click on the button ...
-1
votes
1
answer
38
views
GitHub Actions for Automatic Cypress Testing Not Working
I'm currently trying to create a GitHub action where I run a Cypress test on PR changes on every PR open/reopen/update, when the PR have by target the staging branch
This is my yaml:
name: Run Cypress ...
0
votes
1
answer
41
views
Cypress - How to scroll into view an element which is removed from the DOM temporarily?
In a webpage, I have a table with many collapsible rows that are always expanded by default. These rows are not loaded all at once and are actually loaded dynamically as you scroll up or down the page....
0
votes
0
answers
49
views
How do you mock a Keycloak instance during Cypress tests
I have a React web-app pointing at a Keycloak authentication server, using @react-keycloak/web to connect them up. I also have a set of UI acceptance tests, written using Cypress.
However, I can't ...
0
votes
0
answers
32
views
How to wait until element is visible for limited time? [duplicate]
I am waiting for a notification into portal after creating a service. Notification is not always visible on top and time is not fixed for it (I mean it takes max 10 seconds to show. If not visible ...
-1
votes
2
answers
70
views
How can I modify the cypress selector to only highlight the buttons that have "COVID" in the category? [closed]
This selector:
cy.get('.mat-mdc-row[data-canedit="true"]:has(.mat-column-categories>span) .mat-column-actions button[id^=actionMenu]')
highlights all 4 buttons in the far-right column. ...
0
votes
1
answer
58
views
Save Test Reports of Dockerized Cypress as Bitbucket Pipeline Artifacts
I got troubles persisting my cypress test results as pipeline artifacts. I can verify, that the folder cypress saves the reports to are correct.
there may be something going wrong with the volume ...
2
votes
1
answer
66
views
Cypress tests fail to run in parallel mode due to mismatched specs between different runs
We're encountering an issue when running Cypress tests in parallel mode. Specifically, when launching different sets of tests with different tags (like smoke and regression), the system reports that ...
0
votes
1
answer
39
views
Chrome DevTools Protocol WebAuthn.addCredential returns error
I am trying to call the Chrome DevTools Protocol WebAuthn.addCredential method inside a Cypress test.
credential = {
credentialId:"myid",
isResidentCredential: true,
rpId:"...
0
votes
1
answer
90
views
Cypress tests on sapui5 webcomponents for react not clicking reliable on Combobox dropdowns
We are having massive issues with out Cypress component and E2E Tests.
We have set up a SAPUI5 Webcomponents for react Application with the webcomponents in V1.
It is all related to the Combobox ...
0
votes
0
answers
18
views
Cypress script unable to perform conditional exit looping when nested loops are used [duplicate]
I am newbie with Cypress. My requirement is to use 2 loops where the script has to abort both loops when a certain condition is met. The condition in question is when the required element #scoreCard ...
0
votes
1
answer
89
views
Tracing source of slow performance in Cypress E2E tests
I have recently asked a couple of questions about how to do non-standard tests in Cypress (specifically, whether a section of the DOM has changed, rather than the usual format of whether the DOM ...
3
votes
2
answers
118
views
How to mock a service inside a Cypress Component Test for a Angular Standalone Component
How to provide a mock for a Standalone component in a cypress component test?
I have this mount-function inside my test:
function mount() {
cy.mount(TestComponent, {
providers: [
...
0
votes
1
answer
61
views
How to find HTML element based on split up text in children [closed]
The element I am trying to find has a hashed classId so the easiest way I know how to find it is either by text or using cy.focused(). Unfortunately, I need to unfocus it and focus it again, but the ...
0
votes
0
answers
19
views
cypress error no internet access url behind proxy
cypress throwing an error for no internet access
cy.visit("URL");
Socks5.pac file
function FindProxyForURL(url, host)
{
if (isInNet(host, "some IPV4 address ", "Some IPV4 ...
0
votes
1
answer
77
views
E2E testing of WebAuthn authentication with Cypress - publickey-credentials-create' feature is not enabled
I am trying to write an automated E2E test for signing up with WebAuthn, using Cypress. I am trying to use Chrome DevTools Protocol as suggested here (example 1). I have also looked at the examples ...
0
votes
1
answer
82
views
Cypress Component Test Fails with 'Cannot read properties of undefined (reading 'EventService') [closed]
I'm encountering an issue with Cypress v13.6.5 component tests in my Angular 17 application. Tests that previously passed are now failing with the following error:
The following error originated from ...
0
votes
2
answers
46
views
In CypressUnable to read data in the table [closed]
I have a table and I am trying to read the text in that 1st row 3rd column
But in the log I am getting empty string
Please help.
cy.get('tbody tr').eq(1).find('td').eq(3).then((td) =>{
const Text =...
0
votes
0
answers
30
views
Unable to capture Cypress console logs in TypeScript for Linux and MacOS
I am executing cypress spec file using code as follow and I want to capture logs generated by cypress in console.
Note: result does contain test data but I explicitly wanted to capture console logs.
...
2
votes
1
answer
32
views
aria-label locator containing backslash not found by Cypress
I am trying to get one of the checkboxes using the aria-label attributes but Cypress is not able to find it. It has a backslash in the value and I replaced it with two backslashes but still Cypress ...
-1
votes
1
answer
50
views
Cypress not able to select radio button [closed]
I'm using cypress with typescript.Not able to click/check the radio button in the dialog box
HTML
<div _ngcontent-ng-c3278589420="" class="dialog-container"><div ...
1
vote
1
answer
51
views
cypress.config.js of setupNodeEvents function does not fire the GET request using the Axios library
I want the after:spec event to trigger after a spec file is executed, automatically posting the test results to Jira's test execution. I am using the Axios library to make the API call to Jira. ...
0
votes
1
answer
63
views
Cypress test catching the wrong request
I'm trying to catch a request, but others are raised on the same page.
I want to get the second request, but apparently the third overwrites the intercept
beforeEach(() => {
cy.visit("/...
0
votes
0
answers
53
views
My feature steps are being highlighted as Undefined, but the methods behind them run fine during execution?
I'm working with Cypress and decided to install Cucumber, ive created a feature file which successfully runs the step definitions in the Cypress runner but my cucumber steps are still being ...
0
votes
0
answers
51
views
Can Cypress run inside web worker?
I want to run a Cypress test case within a web worker to avoid relying on API, which would reduce deployment costs in a serverless environment. My main challenge is figuring out how to import Cypress ...
0
votes
0
answers
67
views
Lefthook pre-push hook not working with Cypress
I currently have a pre-push hook with runs a suite of e2e tests from Cypress. When I manually type git push into my terminal lefthook will my cypress test suite. However, when I try using the Sync ...