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

    melodic-ocean-83158

    09/15/2022, 7:14 PM
    yes, it's just a method of organizing test cases
  • m

    melodic-ocean-83158

    09/15/2022, 7:14 PM
    yeah, you can test it there and then say if it changes anything
  • m

    melodic-ocean-83158

    09/15/2022, 7:16 PM
    if the BeforeEach is out of context I know that it only runs again when all the Context tests are over, but I don't know, in fact, if the localstorage is preserved as it happened in your case.
  • g

    gentle-accountant-4760

    09/15/2022, 7:16 PM
    And where would I put the before? between describe and context? or inside each context?
  • m

    melodic-ocean-83158

    09/15/2022, 7:18 PM
    from my experience must be a beforeEach inside the context.
  • m

    melodic-ocean-83158

    09/15/2022, 7:19 PM
    But try the same way yours was before. A before between describe and context
  • g

    gentle-accountant-4760

    09/15/2022, 7:21 PM
    Yupp, but that will be work for tomorrow! 😁 as its 21:21 here and should have ended my shift 3h ago.
  • m

    melodic-ocean-83158

    09/15/2022, 7:23 PM
    @gentle-accountant-4760 tomorrow tell me what happened
  • g

    gentle-accountant-4760

    09/15/2022, 7:23 PM
    will do as soon as I have coded it 😁 Thank you for spending my evening with some knowledge!
  • p

    polite-jordan-30716

    09/15/2022, 10:35 PM
    Hey. Is there somebody whos a Chai mastermind?
  • p

    polite-jordan-30716

    09/15/2022, 10:36 PM
    Trying to assert on chai array element containing a substring
  • p

    polite-jordan-30716

    09/15/2022, 10:38 PM
    expect(['something','nothing','hot cocoa']).to.be.an('array').that.includes.something.like('cocoa') this will fail: Command: assert Actual: hot cocoa Expected: cocoa Message: expected an element of [ something, nothing, hot cocoa ] to be like cocoa I am not sure what is the best way here
  • b

    bitter-fountain-36713

    09/16/2022, 1:53 AM
    Have you tried splitting the two assertions?
  • c

    clever-table-91477

    09/16/2022, 3:13 AM
    https://docs.cypress.io/api/commands/each#Syntax
  • c

    clever-table-91477

    09/16/2022, 3:17 AM
    https://example.cypress.io/commands/assertions#expect
  • c

    cold-apartment-77594

    09/16/2022, 8:30 AM
    Hi there I m having problems using the
  • c

    cold-van-45410

    09/16/2022, 9:28 AM
    How to handle pdf window in cypress? When I am click on btn pdf window is opening
  • l

    limited-fish-66138

    09/16/2022, 10:44 AM
    Hi , using cypress 9.00, noticing issue with cypress runner, I use cypress open every time. When test is running and when I intervene during execution ( like during wait when I click button or inspect element ) next test is not executing it just hangs there . I do tried clearing cookies , before each test but still second test is not executed it just hangs in first test. Any suggestions? Thanks Gayathru
  • p

    polite-painting-51763

    09/16/2022, 11:08 AM
    Cypress-if issue
  • g

    gray-kilobyte-89541

    09/16/2022, 12:40 PM
    See https://glebbahmutov.com/cypress-examples/9.7.0/commands/assertions.html#array-assertions
  • g

    great-printer-93682

    09/16/2022, 2:34 PM
    Is Cypress is an open source tool or paid
  • g

    gray-kilobyte-89541

    09/16/2022, 3:24 PM
    https://docs.cypress.io/faq/questions/general-questions-faq
  • a

    adventurous-rose-66394

    09/16/2022, 6:18 PM
    Hey, anyone has any idea why test are running so many times, based on how many other tests you have?
  • a

    adventurous-rose-66394

    09/16/2022, 6:19 PM
    Everytime i add a new spec, the specs run once more
  • a

    adventurous-rose-66394

    09/16/2022, 6:19 PM
  • l

    limited-gold-56062

    09/17/2022, 3:57 AM
    https://github.com/cypress-io/cypress/discussions/21186?sort=new#discussioncomment-2829753 why do we need to click a link or button to make cy.origin() work? if we use window.location.href, cy.get() will not work you can try a demo url: https://b2clivedemo.b2clogin.com/b2clivedemo.onmicrosoft.com/B2C_1A_Demo_SignUp_SignIn_Dynamic/oauth2/v2.0/authorize?client_id=cfaf887b-a9db-4b44-ac47-5efff4e2902c&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login
  • m

    microscopic-toddler-9116

    09/18/2022, 5:42 PM
    Hi I am new to Cypress and here Cypress is not able to find chrome in my system how to resolve this ?
  • a

    acceptable-solstice-90676

    09/18/2022, 11:21 PM
    Hey guys, do you know how can I run cypress tests in multiple environment with Cypress 10? If you know about an article would be great
  • c

    colossal-farmer-50435

    09/19/2022, 6:51 AM
    Hey guys do you know how can I run
  • s

    strong-horse-65997

    09/19/2022, 7:05 AM
    Hi Can anybody help with integrating DB to cypress.. its a pgadmin db what I can find is the only way to integrate it with mysql not sure if its the same for pgadmin as well
1...103104105...192Latest