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

    green-book-63455

    06/20/2022, 9:28 AM
    Does non UI login eg cy.request) work as in the examples with a single page application where the url does not change? Or are extra steps required?
  • g

    green-book-63455

    06/20/2022, 9:30 AM
    So if you do this manually in a browser it works? And via cypress, the redirect to password page does not happen? Does it time out?
  • o

    orange-dog-93152

    06/20/2022, 9:44 AM
    Hi @here. What can I use to assert the style attributes below?
  • s

    silly-journalist-41771

    06/20/2022, 11:20 AM
    hey how what wait method can I use that stops the wait and carries on my test after the locator is found and clicked?
  • g

    gray-kilobyte-89541

    06/20/2022, 11:58 AM
    what do you want to assert?
  • g

    gray-kilobyte-89541

    06/20/2022, 11:58 AM
    http://on.cypress.io/retry-ability
  • o

    orange-dog-93152

    06/20/2022, 12:07 PM
    Hi Gleb. All of the colors we see there.
  • f

    fresh-doctor-14925

    06/20/2022, 12:46 PM
    A lot of the questions you're asking on here are answered in the Cypress tutorials and docs. Have you taken a look at them? I think you'll find them to be helpful https://docs.cypress.io/api/table-of-contents https://learn.cypress.io/tutorials And, when you've done those. There's @gray-kilobyte-89541's course for advanced networking tricks https://cypress.tips/courses
  • s

    silly-journalist-41771

    06/20/2022, 12:47 PM
    Thank you I'll have a look!
  • p

    polite-alarm-78904

    06/20/2022, 1:44 PM
    Any tips on how to set multiple env variables from command line? I have an npm script like this currently
    cy:open:admin: cypress open --env configFile=$CUSTOMER ,admin=true
    If I run
    CUSTOMER=myCustomer npm run cy:run:admin
    the configFile variable is set correctly, but the admin variable is ignored. What am I doing wrong here?
  • g

    gray-kilobyte-89541

    06/20/2022, 1:49 PM
    visual testing to the rescue!
  • f

    fresh-doctor-14925

    06/20/2022, 1:49 PM
    What I'd normally answer: Cypress won't read all environment variables. There are a couple of extra steps you'll need to take to make
    admin
    available. Some options here: https://docs.cypress.io/guides/guides/environment-variables Though I see you're passing
    --env
    already. Couple of thoughts: 1) could it be that you have a space after
    $CUSTOMER
    ?, instead of after the comma? 2) Otherwise, I'd want to see how you're accessing
    admin
  • o

    orange-dog-93152

    06/20/2022, 1:51 PM
    We are configuring Percy nowadays but just want to verify as the values are correct as I selected. Any way to verify those by using 'have.css' or sthg like that?
  • p

    polite-alarm-78904

    06/20/2022, 1:54 PM
    1) You were correct. The space was the issue. Thanks!
  • g

    gray-kilobyte-89541

    06/20/2022, 1:56 PM
    sure, those assertions are ok to use
  • o

    orange-dog-93152

    06/20/2022, 1:59 PM
    Do I have to write the attribute name fully as it is seen?
  • c

    clean-australia-93957

    06/20/2022, 2:11 PM
    I am having this error since I ve migrated to Cypress 10. it works fine on 9.6.1. Does anyone have any idea ? CypressError cy.task('hash') failed with the following error: The 'task' event has not been registered in the setupNodeEvents method. You must register it before using cy.task() Fix this in your setupNodeEvents method here: Because this error occurred during a before each hook we are skipping all of the remaining tests.Learn more cypress/support/functions.ts:76:6 74 | const app = Cypress.env("CLIENT_ID"); 75 | > 76 | cy.task('hash', { | ^ 77 | data:
    ${app}-${state}
    , 78 | key: Cypress.env("CLIENT_SECRET"), 79 | }).then((hash) => {
  • g

    gray-kilobyte-89541

    06/20/2022, 2:16 PM
    I don't know. But check this example https://github.com/bahmutov/cypress-examples/commit/30ae1258787d0abc35252b1a989fe12c4a870224
  • g

    gray-kilobyte-89541

    06/20/2022, 2:17 PM
    got to move it into setup e2e node callback
  • b

    better-pharmacist-8890

    06/20/2022, 3:26 PM
    Can anybody explain this to me: I have 3 GET commands that get executed before my home page is displayed. I have mocked them all up with intercept commands and have fixtures returned of the data - for some reason they do not work unless I pass the REAL tokens that I get from login - I thought cypress really stops the real execution of these commands. Funny thing is I do get my fixtures back with my test data
  • a

    aloof-beach-98822

    06/21/2022, 12:51 AM
    Can anyone help me with this issue: I am getting this timeout error 'Expected to find element, but never found it ' sometimes even if I set the " defaultCommandTimeout :10000" in cypress.json?
  • b

    bitter-fountain-36713

    06/21/2022, 2:20 AM
    Whats does your command look like?
  • a

    adorable-stone-42197

    06/21/2022, 9:04 AM
    Hello guys
  • a

    adorable-stone-42197

    06/21/2022, 9:04 AM
    // preserve cookie so we can login just one and put cy.login in befeore method // Cypress.Cookies.defaults({ // preserve: 'access' // })
  • a

    adorable-stone-42197

    06/21/2022, 9:05 AM
    This is deprecated, is any have new solution to run all the test with one login
  • f

    fresh-doctor-14925

    06/21/2022, 9:51 AM
    Check out the
    cy.session()
    API. I think that will give you what you're looking for
  • s

    swift-kitchen-62493

    06/21/2022, 12:52 PM
    can i somehow test website with https on?
  • g

    gray-kilobyte-89541

    06/21/2022, 1:03 PM
    it is already there https://docs.cypress.io/faq/questions/using-cypress-faq#When-I-visit-my-site-directly-the-certificate-is-verified-however-the-browser-launched-through-Cypress-is-showing-it-as-Not-Secure-Why
  • a

    aloof-beach-98822

    06/21/2022, 8:40 PM
    Is there any other method to use cy.session() to preserve cookie without using API. I need to stay logged in for all the transactions like search prod->Addtocart->shopping cart->checkout. I am looking for an option other that API. Please advice
  • g

    gray-kilobyte-89541

    06/21/2022, 8:45 PM
    https://github.com/bahmutov/cypress-data-session
1...555657...192Latest