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

    fresh-doctor-14925

    08/12/2022, 8:00 AM
    Sounds like you're looking for
    before()
  • h

    happy-dinner-13480

    08/12/2022, 8:59 AM
    is your
    cypress.config.ts
    located in the root of your project? maybe Cypress can't find it and will then default to
    cypress.config.js
    ?
  • c

    cold-van-45410

    08/12/2022, 10:50 AM
    hi team
  • c

    cold-van-45410

    08/12/2022, 10:51 AM
    How can I use cy.session() to store session after each it()
  • m

    microscopic-crowd-9149

    08/12/2022, 11:01 AM
    thanks for reply -- i am posting my full file tree.. please check if i am missing anything
  • h

    happy-dinner-13480

    08/12/2022, 1:07 PM
    did you get an wizzard when you first started Cypress?
  • s

    sticky-school-84576

    08/12/2022, 4:05 PM
    hello team im trying run the highlighted url for different countries but it only runs for one ,can anyone help with this ?
  • m

    microscopic-crowd-9149

    08/13/2022, 3:14 AM
    Thanks @happy-dinner-13480 it’s working now
  • c

    cold-van-45410

    08/13/2022, 7:14 AM
    how can we store text from one it() and use it in another it()?
  • c

    cold-van-45410

    08/13/2022, 9:23 AM
    can anyone tell me how to use cy.session() in proper way
  • c

    cold-van-45410

    08/13/2022, 9:23 AM
    from my end its not working
  • i

    incalculable-crowd-80129

    08/13/2022, 5:01 PM
    Watch this:

    https://youtu.be/Csjg1qktnU0?t=376▾

  • c

    cold-van-45410

    08/13/2022, 5:53 PM
    plzz give solution of it
  • s

    stale-optician-85950

    08/13/2022, 7:11 PM
    cy.session() is well documented here https://docs.cypress.io/api/commands/session nobody is hiding the 'proper way' 🕵️
  • c

    cold-van-45410

    08/14/2022, 3:03 AM
    ok buddy
  • c

    cold-van-45410

    08/14/2022, 3:11 AM
    Suppose I have 5 tag in my page ,here i will check links are not broken and links contain expected page , I am able to check links are not broken without navigate to link but not able find check links contains expected page Please give solution of it
  • a

    acceptable-solstice-90676

    08/14/2022, 4:47 AM
    Hi ~ does anyone know how to solve this?
  • a

    acceptable-solstice-90676

    08/14/2022, 4:48 AM
    I thought adding
    extends: "./cypress.config.js",
    in the my new config file name
    cypressOrigin.config.js
    would solve it
  • a

    acceptable-solstice-90676

    08/14/2022, 4:49 AM
    In both files I have the same information, just that one has
    experimentalSessionAndOrigin: true,
  • s

    stale-optician-85950

    08/14/2022, 3:04 PM
    Your tag will include a class (or even better to contain a unique id) so you can use that in your selector, example
    Copy code
    cy.get('[class="uol-c-page-share__list-link"]').contains('Facebook').parents('a').should('have.attr', 'href').and('include', 'www.facebook.com');
    This is just example code obviously as you have not shared your html, so you may need to tweak it for your scenario.
  • c

    cold-van-45410

    08/14/2022, 3:25 PM
    cy.get('a').then((links)=>{ const href= links.prop('href') cy.request(href).then((resp)=>{ //check broken link expect(resp status).to.eq(200) }) }) this is my code buddy plzz check ,what should i do to check i am on expected page without navigate
  • b

    boundless-egg-31682

    08/14/2022, 5:26 PM
    I have an issue running tests in Firefox headless. My tests have no issues in FF headed, or Electron headless, but when trying to run in FF headless, certain elements cannot be found. Does anyone have any suggestions?
  • f

    fast-hairdresser-12938

    08/14/2022, 8:02 PM
    issue in modal updation:- I had a modal where I checked one value(filter) and unchecked another one (score)and click on save, but same value does not get reflect after clicking the save. Row still showing both.
  • h

    happy-egg-31273

    08/14/2022, 10:55 PM
    I'm trying to set up an E2E test purchase, going from my site to Stripe Checkout and back to my site. Is this possible?
  • a

    acceptable-solstice-90676

    08/15/2022, 1:12 AM
    I think you can do it with cy.origin()
  • f

    fresh-doctor-14925

    08/15/2022, 7:08 AM
    What does the video recording show? That might give you some clues
  • s

    stale-optician-85950

    08/15/2022, 7:52 AM
    You have space between resp and status, this is not correct syntax. It should be
    Copy code
    expect(resp.status).to.equal(200);
    This is a Chai assert, familiarise yourself with the documentation: https://www.chaijs.com/api/bdd/
  • l

    limited-room-30929

    08/15/2022, 7:57 AM
    I seem to have a problem with jwt, it is stored in a cookie, I tried using it in a session but it is not written so the login fails
  • c

    cold-van-45410

    08/15/2022, 8:01 AM
    ok otherwise how should I check tag contain expected page without navigate
  • s

    stale-optician-85950

    08/15/2022, 8:04 AM
    I answered this question yesterday above.
1...808182...192Latest