Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:38
    M-jerez commented #7552
  • 15:35
    Bkucera edited #8976
  • 15:34

    brian-mann on develop

    fix(webpack-preprocessor): fix … Merge branch 'master' into deve… (compare)

  • 15:34
    Bkucera edited #8976
  • 15:34

    Bkucera on master

    fix(webpack-preprocessor): fix … (compare)

  • 15:34
    Bkucera closed #8976
  • 15:33
    Bkucera edited #8976
  • 15:32
    Bkucera edited #8976
  • 15:32
    Bkucera edited #8976
  • 15:31
    deane187 opened #8988
  • 15:29
    assimilatedgiraffe commented #8981
  • 15:27
    cypress[bot] commented #8969
  • 15:14
    jennifer-shehane edited #8437
  • 15:13
    jennifer-shehane edited #8437
  • 14:48
    jennifer-shehane commented #8753
  • 14:46
    renovate[bot] edited #3777
  • 14:42
    cypress[bot] commented #8976
  • 14:33
    flotwig commented #8931
  • 14:33
    chloe0592 commented #8364
  • 14:33
    flotwig labeled #8931
Marco Pivetta
@Ocramius
Regarding https://gitter.im/cypress-io/cypress?at=5f36b945367ff60c32b244a3, turns out that all is good and I'm just mis-interpreting output. What was happening is that the command was going to the wrong endpoint, effectively making it no-op
Ming Han Chung
@mystoryphoto_twitter
Ok, this seems ridiculous but I can't get the --spec to work. My integration directory is set to ui (cypress/ui/visual is where the test i want to run sit). I am trying to run --spec 'visual/visual.js' but it can't find it. I seem to run it locally fine but in bitbucket pipellines it can't find no matter what
learnuser
@learnuser
Hi Guys - I notice that one of the web application in my project is taking longer to load in cypress container/chrome browser when compared to the chrome browser in my machine. Does anyone have any insights on this?
Eugene Myunster
@t0lkman

Hi there, I have something like Cypress.on('test:after:run', (test, runnable) => {
if (test.state == 'failed') {
cy.writeFile('failedTests.log', ${test.corrId} - ${test.title}\n, {encoding: 'utf-8', flag: 'a+'})
}
}
But cypress complains - CypressError: Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.

The command that returned the promise was:

cy.writeFile()

9 replies
Carlos Salazar
@csalazar1
Untitled.png
am I going insane, or it's failing to compare two arrays?
3 replies
sudheer-cypress
@sudheer-cypress
Need help urgently ..
cy.request ({
method: 'GET',
url : 'something'
body: {},
headers: {
'Accept-Encoding': 'gzip, deflate'
}
}).then(function (response1) { cy.writefile('filename.xls',response1.body,'base64'} }) When I use the above code, I am not able to open the xls file in readable format.
abhar115
@abhar115
Hi Team, I am integrating cypress test with Gitlab CI. When i am running it, i came up with these issues. Attaching screenshot
abhar115
@abhar115
image.png
Pls help me with the solution as I am unable to find it.
Jonas Amundsen
@badeball
I have a helper method that consumes Cypress' lodash instance and I want to unit-test this helper method (Yes, a test of test-code. It's sufficiently complex that it's warranted.) Can I access Cypress' lodash in pure node-context?
I know I can simply require("lodash") and it will incidentally work due to hoisting, but I don't get types with this.
Marek Alexa
@coding_hedgehog_gitlab
10 replies
Ondskan56
@Ondskan56
Hey all, the issue with '.get' that scrolls the screen is really annoying and it seems that it hasn't been fixed since 2017.
Is this on the roadmap? Are you aware of this issue and you think on a solution? any feedback is appreciated
cypress-io/cypress#871
I tried some of the workaround and they work on some of my tests but they don't work on all of them.
I find it really difficult using Cypress with this issue.
Viktor Soroka
@ViktorSoroka07
Hi all, having an issue with experimental component testing when I want to run them all with "Run all specs" button. I have the " No tests found in your file:" __all error. Though I am able to run the specs for individual file upon click on file name. Has anyone faced this?
Mahesh Thota
@maheshthota31
Hi all, I have to test an API which content type is multipart/form-data. Can you please help me out with example on how to upload files with cy.request() ?
2 replies
Samih-Shaikh
@Samih-Shaikh
Hey guys !!
Hey guys !! How can i get text of an html element for eg. From and h3 tag into a const so that i can later use it to assert with another element after few actions
1 reply
PratapJi
@PratapJi

Hi guys

I am trying to automate a site with Cypress, but it seems I hit a roadblock.
Here is my problem statement :

The base URL I am trying to access makes a 302 to 'https://login.microsoftonline.com/{tenant_id}/oauth2/authorize' for authentication. while trying to launch base URL a 302 happens and gets timed out (after 1 minute) on visit step.

23 replies
any help would be appriciated.
thanks
nimmala89
@nimmala89
Hi Guys, I'm trying to run cypress tests on Teamcity CI/CD. I have a Before() blocks which does the login into the application and stores the cookies of the session for each subsequent test to use. For some reason when i run locally, this works pretty much fine. But when I try to run it on Teamcity , the tests fail abruptly. From what I investigated, they fail at the step of logging in (i.e in the Before() hook). Has anyone else faced the same issue ?
nimmala89
@nimmala89

Hi Guys, I'm trying to run cypress tests on Teamcity CI/CD. I have a Before() blocks which does the login into the application and stores the cookies of the session for each subsequent test to use. For some reason when i run locally, this works pretty much fine. But when I try to run it on Teamcity , the tests fail abruptly. From what I investigated, they fail at the step of logging in (i.e in the Before() hook). Has anyone else faced the same issue ?

cypress-io/cypress#8294

Sam Fent
@samfent_gitlab
I've been trying to solve this issue for several days now, and still no luck: I'm trying to stub an async ES6 module function, which is called in my React app's componentDidMount. After I cy.stub I cy.visit, but the original function is still called.
Question in a little more detail here: https://stackoverflow.com/questions/63399396/trying-to-stub-an-async-function-that-gets-called-in-componentdidmount-using-c
alewolf
@alewolf
Hi guys. I've created a WordPress plugin that I need to test with several themes. I do have already a bunch of tests and they all must work with every theme. In order to test this I need a method to run all tests, then switch the theme, then run all tests again, then switch the theme, and so forth. What is a good, or the proper way how to handle this?
cindysongzi
@cindysongzi

Hi, can anyone help how to assert a new window is opened?

// click Practice should open a new tab.
beforeEach(function () {
    cy.visit('/index.html', {onBeforeLoad(win){cy.stub(win, 'open')}})
})

it.only('test pdf', ()=>{
    cy.contains('Lesson 1').click()
    cy.contains('Practice').click()
    cy.window().its('open').should('be.called')
})

Error:
its .open
Type Error: Timed out retrying: [Function: open] is not a spy or a call to a spy!

3 replies
benpal
@_JBRP__twitter
any one here experience using 360 image on cypress?
Rafaa Turki
@Turkirafaa
Can someone help with pag object model?
3 replies
Patrick Schaub
@pschaub
hey guys, i need to do an api request and get the body response as json out of the promise
anybody has an idea how to get the body response without promise? i just need the body response
in a command
Willoiam
@Willoiam
Hi everyone, i'm a C# developer and my company is looking for a freelancer - Mainframe Cypress developer, I figure this would be a good place to reach out to see if anyone can help out?
1 reply
My email is william@sparagus.be, we can pay 600-700 Eur per day , 12 month contract(mostly home based) client is in brussels.
Thanks all !
Marco Buschini
@marcobuschini
Hello, I am in need of a solution to fix the language cypress tests are run once and for all. I am developing in it_IT but I want my tests to run in en_US. It is possible?
2 replies
Ming Han Chung
@mystoryphoto_twitter
Anyone know how to set the integrationfolder and directory structure right to make --spec work? Having major issues trying to get it to run a specific spec file
7 replies
nikkieta
@nikkieta
image.png
image.png
1.PNG
1.PNG
learnuser
@learnuser
Is there a way to reset experiment variable value within the test? I have set experimentalSourceRewriting as true in my cypress.json to address a cypress bug where clicking on link causes cypress to crash. However this variable makes the test really slow and there is an open bug cypress-io/cypress#7669 . So I would like to set experimentalSourceRewriting to false within the test after I have navigated to required page. I tried using Cypress.env() to reset that value but that doesn't seem to work.
Muhammad wasiq khan
@wasiqkhan786
return element(by.id("filterList")).all(by.css(" #filterList md-chip"));

return element(by.id("filterList")).all(by.css(" #filterList md-chip"));

@jorrit-wehelp
QA1980
@QA1980
image.png
Hey gents ! anyone know how to run cypress inside WSL from windows 10 , Im getting this error
Hemant Choudhari
@hemantc09
Hi All,
Is anyone getting this security error.?
Screen Shot 2020-08-17 at 10.38.15 AM.png
my cypress test URL say not secure in chrome