https://cypress.io logo
Join Discord
Powered by
# general-chat
  • a

    average-garden-13651

    06/16/2022, 9:28 AM
    This is the modal div and all its child elements
  • a

    adventurous-postman-3917

    06/16/2022, 9:35 AM
    Please share your selector (cy.get()) and cypress error log
  • a

    average-garden-13651

    06/16/2022, 10:16 AM
    I’ve also tried without the then() function, without the force click, and without the window() call
  • a

    adventurous-postman-3917

    06/16/2022, 10:34 AM
    1. Remove the
    .window()
    . If the elements related to modal appear after clicking on
    a.prerequestedButton
    element, using then() and putting the rest of the code inside its callback function is enough. 2. I can see that your elements IDs are generated automatically by the framework using the combination of
    modal_
    and
    epoch time (miliseconds)
    so you should not use that ID for selector as it is changed in each test run. Use a static selector. (If you're going to write tests for this project, better to ask FE developers to add unique attributes like
    data-cy
    for the elements)
  • f

    freezing-piano-2792

    06/16/2022, 10:36 AM
    My biggest pet peeve nowadays is the inability to group chainers together for the purpose of retryability, as it makes composition of helper methods difficult. Are there any plans to address this?
  • a

    astonishing-electrician-44897

    06/16/2022, 12:19 PM
    Maybe this one? https://cypress.tips/courses Or on PluralSight it self but maybe a little out dated: https://www.pluralsight.com/courses/cypress-end-to-end-javascript-testing
  • g

    gentle-accountant-4760

    06/16/2022, 12:21 PM
    Appreciate it! πŸ˜„
  • b

    bright-processor-92363

    06/16/2022, 12:22 PM
    Test Automation University has some free courses on their website (Introduction to Cypress and Advanced Cypress) https://testautomationu.applitools.com/
  • a

    average-garden-13651

    06/16/2022, 3:29 PM
    1 Okey thank you! 2 Bad example from me, it doesnt work with static IDs either…
  • b

    bored-baker-20372

    06/16/2022, 3:36 PM
    Regarding this, do you orient your teams to always have QA-specific attributes (data-cy)? I mean what can you recommend if the project is already old and all FE attributes are already created with no QA-specific attributes?
  • m

    modern-librarian-14184

    06/16/2022, 3:38 PM
    Hi @lemon-oyster-64925 did the email with the recording of yesterday's webinar go out yet?
  • l

    lemon-oyster-64925

    06/16/2022, 4:24 PM
    Great question! The email is scheduled to go out later today I believe. Check your inbox in the coming hours! πŸ™‚
  • g

    great-mechanic-19684

    06/16/2022, 7:41 PM
    Hi Cypress Community! I created Automize which is a 100% free "Selenium IDE" - like tool that can generate an entire codebase locally in Cypress. It's great for startups or people who need QA tests quickly for their projects. You can re-use events and it also works with network events. You can also use and create variables. It has a nice GUI that lets you choose exactly which selector you would like so you are never fighting the tool. Check it out -> https://automize.dev If you have any questions / concerns or feature requests feel free to dm me. Happy Testing πŸ™‚
  • a

    adventurous-postman-3917

    06/17/2022, 10:42 AM
    Oh bad news, I'm so blind for that as I don't have access to your code and project
  • a

    adventurous-postman-3917

    06/17/2022, 10:44 AM
    Yes, This is one of the most important things I always have a discussion about with FE team lead when starting a new project or joining a new team. Actually, this is also useful for them to write Unit/Component/Integration testing. I also had this situation (Test automation for a project without unique locators) and I've started adding the locators myself by contributing to the FE project while I was writing the automation tests.
  • a

    adventurous-postman-3917

    06/17/2022, 10:47 AM
    Well done πŸ‘ . I will take a look and try to use it.
  • l

    little-translator-68537

    06/18/2022, 5:35 PM
    thx replied. same issue. I have tried yarn run cypress open npx cypress open ./node_modules/.bin/cypress open
  • l

    little-translator-68537

    06/18/2022, 5:40 PM
    same port? would you mind to talk more detail? at .bashrc # set DISPLAY variable to the IP automatically assigned to WSL2 export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 at terminal, I command : echo $DISPLAY 172.24.48.1:0.0 where should I modify ?Xvfb :99??export $DISPLAY=:99?? I have tried cat /etc/resolv.conf > is 172.24.48.1 echo $DISPLAY > is 172.24.48.1:0.0 export DISPLAY=172.24.48.1:0.0 export LIBGL_ALWAYS_INDIRECT=1
  • s

    silly-journalist-41771

    06/18/2022, 10:07 PM
    hey!
  • s

    silly-journalist-41771

    06/18/2022, 10:08 PM
    anyone around to help?
  • e

    echoing-painting-40909

    06/19/2022, 12:00 AM
    Hi https://dontasktoask.com/
  • f

    freezing-piano-2792

    06/19/2022, 10:22 AM
    Type
    TestConfigOverrides
    doesn't contain the property
    baseUrl
    , as indicated in https://docs.cypress.io/guides/references/configuration#Environment-Variables
  • f

    freezing-piano-2792

    06/19/2022, 10:23 AM
    v10.1.0
  • f

    freezing-piano-2792

    06/19/2022, 10:27 AM
    Nor
    experimentalSessionAndOrigin
  • s

    silly-journalist-41771

    06/19/2022, 11:15 AM
    So I have four assertions I've made in my main test file, I've dynamicaly passed 3 arguments to my commands class where the logic is held
  • s

    silly-journalist-41771

    06/19/2022, 11:15 AM
    My in my main test file I have 4 chunky methods
  • s

    silly-journalist-41771

    06/19/2022, 11:15 AM
    How can I clean this up
  • s

    silly-journalist-41771

    06/19/2022, 11:15 AM
    So it's more compact
  • c

    cuddly-thailand-33926

    06/19/2022, 4:33 PM
    I have methods such as .EachGameHasPlayNowButton(), and leave all the chunk in designated command files
  • s

    silly-journalist-41771

    06/19/2022, 4:33 PM
    πŸ‘€
1...515253...127Latest