https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • s

    sticky-energy-17458

    12/22/2022, 7:04 PM
    Anyone can help me with parallel testing in circle ci, i have say 50 test cases then i want it to be divided and run parallel on different machines
  • g

    gray-kilobyte-89541

    12/22/2022, 8:06 PM
    https://github.com/cypress-io/circleci-orb
  • g

    gifted-vase-76896

    12/22/2022, 9:55 PM
    Hey, @late-planet-4481 thanks for your response. There are two images on the page, both have the same identical link behind them. It should not matter which link gets clicked since they take you to the same place. I suppose I do not need to have { multiple: true } at all, but even if I take that off, cypress tells me it finds (2) links that match and errors out - so that was why I put { multiple: true } in the first place. I'm not sure why you can't load the page. You mean you can't go to: https://www.myparkingservices.com/ ? Try refreshing it? It should work, it is public 🙂
  • l

    late-planet-4481

    12/22/2022, 10:46 PM
    Yeah, it just times out! Are you also running the site on localhost? Maybe there's some confusion there? When your
    get()
    returns multiple items you can isolate one item a few different ways. One is to append
    :eq(0)
    to your CSS selector, where 0 is the index of the list of elements that were returned. Similarly, Cypress allows you to put
    .eq(0)
    after your
    get()
    to pick the first one.
  • b

    bitter-fountain-36713

    12/23/2022, 3:01 AM
    The page does not load for me as well. Either way, you should only get one of the links by choosing a more narrowed selector, filter by visibility if one is hidden, etc.
  • n

    nice-lifeguard-81070

    12/23/2022, 7:45 AM
    hey , after integrate cypress code coverage in nuxt , Though I'm getting options.ssr value as both true & false for different files, and I also get code coverage report but my app is not running properly , I got this error on my console , [Vue warn]: Hydration node mismatch: Client vnode:.. can anyone help me on this ?
  • n

    nice-restaurant-99469

    12/23/2022, 8:11 AM
    You should put the reCAPTCHA in testing mode. https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
  • g

    green-book-63455

    12/23/2022, 1:25 PM
    hello, I am using request which returns a response which contains the info I need. But I am unable to assign that info to a global variable. This may be due to synchronisation issues but I am not sure. My code is let fredID = ""; cy.request('SEARCH', 'http://localhost:8055/users/', { "query": { etc etc } }).then( (response) => { cy.log("result of search is " + JSON.stringify(response.body)); cy.log("result of search is " + response.body.data[0].id); fredID = response.body.data[0].id; cy.log("Inside request, fred id is " + fredID); } ) cy.log("fred's ID is " + fredID); The output is log result of search is {"data":[{"id":"dcd5 etc etc ]} log result of search is dcd546ea-226c-4ffe-9161-567488a4c290 log Inside request, fred id is dcd546ea-226c-4ffe-9161-567488a4c290 log fred's ID is (nothing printed) What am I doing wrong?
  • c

    colossal-table-38461

    12/23/2022, 1:54 PM
    Hello All I am trying to Automate the SMS from Mobile Number using Mailosaur & Cypress using below code. const mailosaur = new MailosaurClient('YOUR_API_KEY'); const testStart = new Date(); // Only look for messages after our test began // Send an SMS message to your test number... const message = await mailosaur.messages.get('SERVER_ID', { sentTo: '1234567890' // YOUR_TEST_NUMBER }, { receivedAfter: testStart }); console.log(message.text.body); // "Your order number is 51223" console.log(message.text.codes[0].value); But I am getting the below error Error : (uncaught exception)TypeError: Cannot set properties of undefined (setting 'innerHTML') Could you please provide the solution for it?
  • g

    green-book-63455

    12/23/2022, 2:25 PM
    Just remembered I have to use cy.wrap
  • b

    bitter-fountain-36713

    12/23/2022, 5:10 PM
    Is that error caused by your app?
  • c

    colossal-table-38461

    12/23/2022, 5:29 PM
    Not sure its from app or from cypress
  • g

    gray-kilobyte-89541

    12/23/2022, 6:17 PM
    Search https://cypress.tips/search for "why cy.log prints nothing"
  • g

    gray-kilobyte-89541

    12/23/2022, 6:19 PM
    Thank you for mentioning me. https://glebbahmutov.com/blog/cypress-mailosaur/ is my take, anything else would require you to provide more details
  • f

    flaky-greece-76021

    12/23/2022, 8:58 PM
    Can anyone please verify if it possible to automate 'https://www.volvocars.com' with cypress ? I got Sorry, we could not load: https://www.volvocars.com/ 403 - Forbidden (text/html) The spec look like this: describe('empty spec', () => { it('passes', () => { cy.visit('https://www.volvocars.com') }) })
  • n

    nice-restaurant-99469

    12/23/2022, 9:24 PM
    Do this describe('empty spec', () => { it('passes', () => { cy.visit('https://www.volvocars.com/', { headers: { 'accept': 'application/json, text/plain, */*', 'user-agent': 'axios/0.27.2' } }) }) })
  • f

    flaky-greece-76021

    12/23/2022, 9:58 PM
    Yes, it is better but still some issues if I visit this url: https://www.volvocars.com/intl/v/car-safety/a-million-more The first part of the page loaded fine, but when I scroll down it does not load the rest of the page. When I open the inspect and network tab, it said many 403 problem.
  • n

    nice-restaurant-99469

    12/23/2022, 10:10 PM
    I think you should check with the developers of why they implemented this the way it is currently working. Because if the intent is to block automated programs/bots running on the website (which I cannot really confirm due lack of technical knowledge) you should not be tasked with automating this. There is a lot of people who have the same issue on certain websites by doing a quick google.
  • f

    flaky-greece-76021

    12/23/2022, 10:41 PM
    Thank you for the answers.
  • h

    hundreds-rainbow-52802

    12/23/2022, 11:56 PM
    I was trying to do the grep as this lib https://github.com/cypress-io/cypress/tree/develop/npm/grep#install , but looking for something more simple. Do you know somehow?
  • w

    wooden-mouse-27150

    12/24/2022, 12:41 AM
    Hey folks I'm trying to run my tests in parallel using github actions. The good news is the tests get run but the actual job never gets marked as complete (see image). Why might the results of the sub tasks not be getting rolled up and marking the job as complete? My job definition for reference taken from https://github.com/marketplace/actions/cypress-io#parallel https://gist.github.com/MichaelrMentele/d0b1607051500dcee5ba1a4ddde6e8fc
  • a

    astonishing-lizard-51217

    12/24/2022, 2:55 PM
    Hello community!! I hope you are fine. I have been working with cyoress for about 3 years and at this moment I have a little problem that is tormenting me!!! I'm testing an app that requires me to press two numbers on the keyboard at the same time (I know it sounds easy, but I'm not able to do it). Your help would be very welcome and I am at your disposal for other questions.
  • a

    astonishing-lizard-51217

    12/24/2022, 3:02 PM
    This is just one of the many things I've been trying : Then('I type the codeOff code', () => { cy.get('#mat-input-1').type(2,{release:false}).type(1) })
  • g

    gray-kilobyte-89541

    12/24/2022, 3:48 PM
    can you provide a repo example with such input?
  • g

    gray-kilobyte-89541

    12/24/2022, 3:49 PM
    set the url as
    baseUrl
  • a

    astonishing-lizard-51217

    12/24/2022, 3:51 PM
    Yes, I have configured the base url
  • a

    astonishing-lizard-51217

    12/24/2022, 3:51 PM
    How can I give you more information to help me?
  • a

    astonishing-lizard-51217

    12/24/2022, 3:54 PM
    I thought that using release:false could solve it but it's not working for me
  • a

    astonishing-lizard-51217

    12/24/2022, 3:55 PM
    ex: I want to enter the numbers 2+1 at the same time but I get 21 and it is not what I need
  • c

    cold-author-79999

    12/24/2022, 7:52 PM
    hey cypress experts..i need help
1...174175176...192Latest