Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:52
    blumk commented #2912
  • 09:20
    renovate[bot] edited #3777
  • 09:07
    renovate[bot] edited #3777
  • 07:07
    renovate[bot] edited #3777
  • 01:50
    adworacz commented #5961
  • 01:49
    adworacz commented #5961
  • 01:48
    bahmutov commented #5961
  • 01:40
    adworacz commented #5961
  • 01:35
    bahmutov commented #5961
  • 01:27
    adworacz commented #5961
  • 01:25
    bahmutov commented #5961
  • 01:15
    adworacz commented #5961
  • 01:15
    adworacz commented #5961
  • 01:14
    bahmutov commented #5961
  • 01:11
    adworacz opened #5961
  • 01:07
    corwinstephen commented #5688
  • 00:22
    renovate[bot] edited #3777
  • Dec 13 23:51
    rajkon commented #5719
  • Dec 13 23:51
    rajkon commented #5719
  • Dec 13 23:03
    cypress[bot] commented #5960
morgan86
@morgan86
hellO
Nagimagi
@Nagimagi
Hi, everyone. I wonder how to use cypress to connect mysql. how to write a test with a query? Is it cy.sqlServer or cy.task? I am so confused having read of the document of cypress-sql-server.
@jennifer-shehane PLZ?
Jorrit
@jorrit-wehelp
@Nagimagi don't use cypress-sql-server myself, but it adds a custom command (that calls a task). So i'd say use that cy.sqlServer custom command, that is its documented 'public API' to use.
Nagimagi
@Nagimagi
@jorrit-wehelp I see. Thx for your explanation. Guess I have trouble deciding which of the solutions to try provided by this issue: Can i make a mysql connection in cypress ? #3689. I will just try following the official document first.
Jorrit
@jorrit-wehelp
ohh, but 'cypress-sql-server' is for Microsoft's SQL Server... not mySQL
Nagimagi
@Nagimagi
ohh, bummer. Then I should try the latest one.
WadeGibson01
@WadeGibson01
Hi all, is there a way to switch to a popup in the same test or should I just get the pop-up URL? thanks
David Lawton
@drumbeg
Hi
I'm throwing an exception in a NodeJS process called by cy.exec() but this results in a code of 0. Does anyone know why or how I can change it so that a non-zero code is returned?
Amit Kumar
@AMIT_NIRVANA_gitlab
Hi everyone, in selenium, we can create test suits for different types of test cases such as smoke, sanity ect, and trigger sanity/smoke test case through the testng.xml file .....how can i achieve the same scenario in cypress ...
Nagimagi
@Nagimagi
Hi again, how to blur the form element that I have catched with .get()and typed ?
I haved tried blur(), but it didn't work.
like this
image.png
JonesInTheFastLane
@JonesInTheFastLane
Any news on test tagging? I need to tag tests so I can run specific tests against different SUT versions
Amit Kumar
@AMIT_NIRVANA_gitlab
how can i run only selected files/specs in cypress??
Nagimagi
@Nagimagi
image.png
Tay08
@Tay08
image.png
Hello,
Anyone can explain me, this error : CypressError: Timed out retrying: this.ol_originalAddEventListener is not a function
context : i would like to click on button with id=reverse-embedded-button". But unable to detect this component. Using cypress 3.7.0
Moke96
@Moke96
Hi, I want to wait for every XHR Request before the next command gets executed. Is it possible to wait for every XHR Request? I know I can wait for certain XHR Request but I want to wait for every Request, without needing to know what requests get send when I press a button.
Błażej Pawlak
@blazejpawlak
Hello; quick question - is it possible / feasible to use rxjs with cypress.io? If so, could you share a basic example? I need to do some http queries in the before phase and rxjs would be of great help there.
Amit Kumar
@AMIT_NIRVANA_gitlab
can cypress support read/write operations on excel sheet ....like , if i maintain test data in excel ...and is t possible to read the test data from there in cypress ??
Just like apache poi does in selenium
?
Jonas Amundsen
@badeball
$ docker run -it -v $PWD:/e2e -w /e2e --entrypoint cypress cypress/included:3.8.0 --version
Unable to find image 'cypress/included:3.8.0' locally
docker: Error response from daemon: manifest for cypress/included:3.8.0 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
saladinProcrastinator
@saladinProcrastinator
Hey guys! Can you help me with debugging setup in WebStorm or VS Code ? Manual from site can't work
Chase Small
@ChaseBig
The Cypress v3.8.0 changelog entry states that cypress now supports --headless --browser chrome but running cypress tests on circleCi throws errors when setting these flags.
Can't run because you've entered an invalid browser name.

Browser: 'chrome' was not found on your system.

Available browsers found are: electron
Can't run because you've entered an invalid browser name.

Browser: 'chrome' was not found on your system.

Available browsers found are: electron
Xvfb exited with a non zero exit code.

There was a problem spawning Xvfb.

This is likely a problem with your system, permissions, or installation of Xvfb.
Jorrit
@jorrit-wehelp
@ChaseBig you sure you are running on a container image that has chrome installed?
Nitzan Nashi
@nitzanashi

hey everyone! i'm testing a video player using video tag trying to run the following code:

        cy.get('video').last().then((videoElement) => {
            videoElement.muted = true;
        });

but the player is not been muted, any suggestions?

it works with document.getElementsByTagName('video').item(0).muted = true when not using cypress
Jorrit
@jorrit-wehelp
@nitzanashi try .prop('muted', true), it is a jquery wrapper you get back from cypress
Nitzan Nashi
@nitzanashi
@jorrit-wehelp didn't work :/
Chase Small
@ChaseBig
@jorrit-wehelp likely not, I didn't realize that was a prereq as the changelog just said Chrome can now be run in headless mode by using cypress run --headless --browser chrome
Peter Martin
@petermartin2002

Afternoon all,|

Quick question i have a should assertion that in this particular case is comparing a null value from an array to an empty string, which is causing my test to fail.

.should("have.value", result[4]); //result[4] === null

How could cypress handle this scenario?

clemenz5
@clemenz5
hey guys,
my testrunner hides the command log. Any ideas how to show it again?
mrpicklez70
@mrpicklez70
@clemenz5 can you share a screenshot of that?
Nishant Singh
@nishants

Hi all. I am trying to capture the exit event of cypress test in plugins/index.js
However none of the following work:

process.on("exit", flushLogs);
process.on("SIGINT", flushLogs);
process.on("SIGUSR1", flushLogs);
process.on("SIGUSR2", flushLogs);
process.on("uncaughtException", flushLogs);

I don't get it. The plugins/index.js is lauched in nodejs env, so it should receive the process event.
Does anyone have an insight ?

Damien Cassou
@DamienCassou
I would like to write some server-less UI testing. Nevertheless, it seems that cy.route() can't be used to bypass the server when using cy.visit(). Do you confirm that it's not possible?
According to https://docs.cypress.io/api/commands/route.html#cy-route-cannot-be-debugged-using, cy.route() can't be used to mock cy.request() but nothing is said about cy.visit()
Nishant Singh
@nishants

Hi all. I am trying to capture the exit event of cypress test in plugins/index.js
However none of the following work:

process.on("exit", flushLogs);
process.on("SIGINT", flushLogs);
process.on("SIGUSR1", flushLogs);
process.on("SIGUSR2", flushLogs);
process.on("uncaughtException", flushLogs);

I don't get it. The plugins/index.js is lauched in nodejs env, so it should receive the process event.
Does anyone have an insight ?

Hi @dwelle ! Do have any insight on this ?

Prem
@premmfb
After upgrading from Cypress 3.4.1 to 3.7.0 I am getting the following error in Teamcity run. [Publishing artifacts] Artifacts path 'cypress/screenshots' not found
JasonFairchild
@JasonFairchild

Hi everyone,

Sorry if this is not the right place for such a long set of questions. But for the past couple weeks, I've been evaluating cypress as a potential tool my team could use. But it is harder for me as I am fairly new to both javascript in general and cypress. So my question is if I might get some insight from those more experienced if Cypress might be a good tool given our circumstances.

The situation is that we use salesforce as the base platform from which to build our websites. But only the very basic infrastructure and building blocks that SF offers. Once you get to our community sites, the page is built very custom with javascript that we control nearly entirely. So I definitely do not want to test anything SF specific, especially not their UI, but the fact that we are using SF at all still presents problems. Unfortunately, when I search salesforce in this chat, and on google in relation to cypress, I don't really find any solutions specific to SF, but instead a good number of problems.

The main two problems I seem to be dealing with are authentication and the fact that SF does not seem to play nice with iframes in general. I want to log in through API, but haven't figured out how that can be done successfully. So I'm pretty discouraged and thought I'd see if I could find out if using cypress in these circumstances would likely involve constant challenges to overcome, or if maybe I can get past authentication and mitigate the iframe issues, then it might be mostly smooth sailing from there. I really like a lot of the features of cypress, the testing philosophies and practices it harbors and the direction it seems to be headed in, so I wanted to at least ask directly before giving up. Even if the answer is something along the lines of 'in theory it should be possible, but we don't know if anyone has actually done much like this.' I can probably work with that. I want to know if its more like 'No, its not going to work or be very difficult because of x and y.' before I put a lot more time into it. Maybe one glimmer of hope is that I've already been able to create tests for our public facing sites that seem to run without many issues in regards to iframes, so that is one reason I hope that maybe it just authentication that I would need to overcome. Thanks a lot for any help!

One other specific question is if the advice in this thread would work to resolve the iframe issues that SF presents, or if that is a different class of issues:
cypress-io/cypress#1763
As one example, I tried to run cypress with a SF development scratch org (primarily as a route to overcome authentication), and I got this error:
SecurityError: Blocked a frame with origin "https://business-page-1769-dev-ed--c.documentforce.com" from accessing a cross-origin frame.
Does this error look like the type that can be resolved by the extension and configuration outlined in issue 1763? I'll probably give it a try next week anyway.

I could also give more details on what attempts I've made to login, if that might help in answering my concern. I've tried using cy.request to make a post to authenticate, the exact same way that we do so through postman, for example. And the request seems to work. It gets the same body back just as postman does, but it doesn't seem to translate into a cookie for cypress. The response contains these 6 attributes. I'm afraid this might represent an "API access only" type of login, which may be the underlying problem..?
"access_token":
"instance_url":
"id":
"token_type":
"issued_at":
"signature":

Last side question: Could there be a straightforward way to use the JSForce library alongside cypress for API purposes?

Ryan Bower
@R-Bower
Hello all! Say I've got a single page that performs an expensive initial computation. So as to avoid the "test coupling" anti-pattern, I've combined multiple assertions into the same test. This creates a very long test chain and makes it difficult to verify which assertions of the test failed without doing a deep dive into the cypress interface or logs.
Here's the current appearance in the cypress ui:
image.png
Desired:
image.png
Is there any way to make this happen within a single test?