https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • m

    modern-dawn-86006

    01/09/2023, 8:56 PM
    kindly check this https://stackoverflow.com/a/70222076 My laptop ran into few issues, so I cannot test it. I believe you need cucumber for this (not the vegetable). Let me know if it works.
  • m

    modern-dawn-86006

    01/09/2023, 9:02 PM
    i found it, i knew I saw it somewhere. https://docs.cypress.io/guides/guides/command-line#cypress-run-headed
  • m

    modern-dawn-86006

    01/09/2023, 9:07 PM
    thats for just parallel https://docs.cypress.io/guides/guides/command-line#cypress-run-parallel
  • m

    modern-dawn-86006

    01/09/2023, 9:11 PM
    what are you trying to do? clear the cookies before each test?
  • m

    modern-dawn-86006

    01/09/2023, 9:19 PM
    @lemon-oxygen-25956https://discord.com/channels/755913899261296641/961325024114008064/1061154160856281139
  • m

    mysterious-psychiatrist-29678

    01/09/2023, 11:24 PM
    I've found out that cy.visit() doesn't work properly. at the beforeEach hook after the first passing spec it doesn't load the page but remains at the "old" page where previous test ended. what could be wrong?
  • b

    bland-machine-99046

    01/10/2023, 8:58 AM
    I've just updated to Cypress 12.3.0 version from 9.5.1 version and my specs files are not being located when executed using NPX. Can anyone assist on this issue please?
  • s

    straight-microphone-66008

    01/10/2023, 9:04 AM
    maybe you need to specify the path to the spec on support files?
  • b

    bland-machine-99046

    01/10/2023, 10:02 AM
    How should I specify the path in support files?
  • d

    dry-portugal-25841

    01/10/2023, 10:41 AM
    there is a mistake in your path
    ADE/AEROTRADE
    should be
    ADE\AEROTRADE
  • m

    mysterious-psychiatrist-29678

    01/10/2023, 11:05 AM
    does it happen that anybody could help me please?
  • h

    happy-dinner-13480

    01/10/2023, 11:40 AM
    Does anyone have experience waiting for a
    websocket
    in Cypress?
  • d

    dazzling-crowd-57204

    01/10/2023, 12:00 PM
    Yes before visiting the homepage
  • s

    straight-microphone-66008

    01/10/2023, 1:56 PM
    https://docs.cypress.io/guides/references/configuration#e2e
  • m

    modern-dawn-86006

    01/10/2023, 2:15 PM
    Can you show the cypress error screenshot?
  • m

    modern-dawn-86006

    01/10/2023, 2:36 PM
    Cypress automatically clear all the cookies. Are you saving a session?
  • f

    freezing-scientist-25758

    01/10/2023, 4:25 PM
    Is there a way to clear session storage with cypress? Something like
    cy.clearLocalStorage();
    ?
  • r

    rich-mechanic-52238

    01/10/2023, 6:02 PM
    Hey Everyone, I was trying to make an app which will tell us whether a link is valid or invalid. What I was doing is simply requesting for that link and if it gives the status as 200 it is valid otherwise invalid. But I am facing problem with linkedIn_profile URLs because it does not care whether a URL is valid or invalid and always give status as 999. Also here I cannot make use of linkedIn api as we do not have the access to search a user in linkedIn api. So, please can anyone help me with this?
  • m

    modern-dawn-86006

    01/10/2023, 6:38 PM
    how about you change your approach. if the link is valid then the profile opens and there must be some element that is present on the profile page and when the link is invalid then the link simply changes to this link. You can yield the url using cy.url() and use an assertion to check whether the link is invalid.
  • r

    rich-mechanic-52238

    01/10/2023, 7:49 PM
    @modern-dawn-86006 I am not able to reach this page because of the authwall.
  • r

    rich-mechanic-52238

    01/10/2023, 7:50 PM
    If you are not logged in then you directly cannot jump on it.
  • l

    late-planet-4481

    01/10/2023, 7:50 PM
    I think I've narrowed down a Cypress 12 bug, caused by the more-aggressive chain retries. Does anyone see why this would not be a bug? At the very least it's a point that needs to be mentioned somewhere. (It's very possible I overlooked it in the release notes.) Consider the following code:
    Copy code
    js
    cy.visit('/')
    cy.location('pathname').as('pathname')
    cy.visit('guest-services')
    cy.get('@pathname').should('equal', '/')
    Now take a look at the attached image. The alias is reassigned after the fact when the pathname changes. This happens every time you directly chain to an alias, so page elements will affect this too. This behavior does not exist in Cypress 11.2.
    m
    • 2
    • 4
  • m

    modern-dawn-86006

    01/10/2023, 7:51 PM
    you can assert your test using the title of the page
  • r

    rich-mechanic-52238

    01/10/2023, 8:07 PM
    @modern-dawn-86006 Yeah here in the browser if you will try to search for a profile without logging in, you can search him/her but with cypress if I will try to search for a user. It will give 999 as a status code and linkedIn authwall will block us.
  • m

    modern-dawn-86006

    01/10/2023, 8:08 PM
    can you kindly share a screenshot?
  • r

    rich-mechanic-52238

    01/10/2023, 8:08 PM
    Yeah sure, give me couple of minutes.
  • m

    modern-dawn-86006

    01/10/2023, 8:09 PM
    sure
  • r

    rich-mechanic-52238

    01/10/2023, 8:21 PM
    @modern-dawn-86006
  • r

    rich-mechanic-52238

    01/10/2023, 8:24 PM
    When I try to use cy.origin(link), its showing me this error and even if I rectify this using cy.origin(url,{experimentalSessionAndOrigin : true}), still it shows me the same error. So, is there any other way to use this experimentalSessionAndOrigin ?
  • m

    modern-dawn-86006

    01/10/2023, 8:29 PM
    put this after your url
    failOnStatusCode: false
    like this cy.request('www.someurl.com', {failOnStatusCode: false})
1...183184185...192Latest