https://cypress.io logo
Join DiscordCommunities
Powered by
# general-chat
  • g

    gray-kilobyte-89541

    05/09/2023, 5:53 PM
    it is not headless, if you believe it
  • c

    colossal-table-38461

    05/09/2023, 6:00 PM
    Hello All, What is the command to execute the scripts based on tag in Cypress with cucumber ? For ex. tag is @regression
  • d

    damp-kangaroo-1521

    05/10/2023, 10:21 AM
    Have we serial mode in cypress like in playwright?
  • a

    adorable-smartphone-87280

    05/10/2023, 1:17 PM
    No, and Cypress avoids test inter-dependence. Playwright's serial mode (https://playwright.dev/docs/test-retries#serial-mode) would probably be considered a code smell in the Cypress world where tests are intended to be fully independent from each other. The closest thing you'd have is a setup hook like a
    beforeEach
    .
  • l

    lemon-holiday-89994

    05/10/2023, 4:00 PM
    tests being dependent on each other has been a code smell in QA automation for as long as I've been doing it. Why playwright offers it is strange to me
  • a

    adorable-smartphone-87280

    05/10/2023, 4:05 PM
    I haven’t tried out Playwright yet myself, but I may at some point. I’m curious why people like it so much.
  • l

    lemon-holiday-89994

    05/10/2023, 4:32 PM
    I gave it a shot a few months back. I liked that it isn't as opinionated as Cypress is. From that perspective, it's much closer to Selenium. What I didn't like is that many of the helpers that Cypress supplies arent' there. All in, we decided to stay with Cypress because of ease of use. I will say that playwright dealt much more smoothly with iframes and cross domain testing than Cypress does, and that is why we were exploring playwright in the first place. Cross domain testing in Cypress feels an awful lot like it is something they threw together as a "we don't want to do this, but enough customers complained, so here's something". Iframes are similar, but in that case, Cypress relies on a plugin that works, but really should be native, since so many websites use them.
  • g

    gray-kilobyte-89541

    05/10/2023, 5:27 PM
    I am planning a course showing both tools and how they are different and how it reflects on the types of tests https://cypress.tips/courses/
  • l

    late-greece-72449

    05/10/2023, 9:23 PM
    were you able to solve the problem? there are few bunch of questions I have for this.. firstly IMHO as best practice I believe describe defines a test suite. You should only have one top-level test suite per file, and only one domain per test. I would just change those describes to contexts and wrap the contexts in a single describe. Correct me if I am wrong if I misunderstood your problem but as you probably know cypress more than me but as soon as cypress starts the tests it tries to get the number of tests in the spec and the
    Copy code
    data
    object defined initially is taken and thus the element
    Copy code
    el
    takes the value from that. However if you
    Copy code
    cy.log(data);
    in your first it() you will see that you are getting the correct data after before. So I believe it is working as designed So basically your object should be finalized before cypress test execution starts if you want your data.forEach to get the final changes, having it in before probably wont work try moving the object assignment outside of before() directly to describe that should work
  • s

    swift-megabyte-13324

    05/11/2023, 2:32 AM
    Am I restricted to these versions of Chrome (currently latest being 107) if I need to use a Cypress provided Chrome image? https://github.com/cypress-io/cypress-docker-images/tree/master/browsers
  • s

    swift-megabyte-13324

    05/11/2023, 3:51 AM
    Ok, I tried running with the cypress/included container... but since we are using docker to run our DB the tests can't run because cypress/included doesn't have its own nested docker.
  • s

    swift-megabyte-13324

    05/11/2023, 3:52 AM
    I guess the assumption is that you must use "containerized services" for your DB?
  • s

    swift-megabyte-13324

    05/11/2023, 3:56 AM
    This feels like big pile of shit hoops to jump through just because Cypress can't allow two different Chrome versions
  • m

    many-airline-45402

    05/11/2023, 4:11 AM
    @swift-megabyte-13324 See https://hub.docker.com/r/cypress/browsers/tags/ for Chrome 113 and https://github.com/cypress-io/cypress-docker-images/issues/889 for the documentation issue. Also answered in https://github.com/cypress-io/github-action/issues/602#issuecomment-1543291385.
  • s

    swift-megabyte-13324

    05/11/2023, 4:31 AM
    Thanks @many-airline-45402 . However, do I have an easy way to run docker inside of this container. Or would that mean I need to use GH's "containerized services" to run the db if I use: container: cypress/included:12.12.0?
  • m

    many-airline-45402

    05/11/2023, 4:41 AM
    @swift-megabyte-13324 I'm not sure I understand your question. You can find an example using a Docker container from Cypress with
    github-action
    and a database in https://github.com/cypress-io/cypress-realworld-app/blob/develop/.github/workflows/main.yml for Ubuntu recording into Cypress Cloud.
  • s

    swift-megabyte-13324

    05/11/2023, 4:44 AM
    Does that part include running the actual DB inside the GH runner?
  • m

    many-airline-45402

    05/11/2023, 4:49 AM
    @swift-megabyte-13324 > Does that part include running the actual DB inside the GH runner? Correct. You can clone the demo repo and try it out for yourself.
  • s

    swift-megabyte-13324

    05/11/2023, 4:49 AM
    Which command runs the DB?
  • m

    many-airline-45402

    05/11/2023, 4:51 AM
    It is quite complex. You'll need to take a look yourself if you want to understand it. Start at the https://github.com/cypress-io/cypress-realworld-app/blob/develop/README.md file.
  • s

    swift-megabyte-13324

    05/11/2023, 4:55 AM
    Ah so this is seems to be using something called lowdb? But it seems it's more of a way to manage a .json file than a "real" database? Then you won't need to worry about how to run anything in Docker.
  • s

    swift-megabyte-13324

    05/11/2023, 6:07 AM
    Now I am forced to waste a whole day on zero-value work and mess up our existing CI configuration because of this...
  • m

    many-airline-45402

    05/11/2023, 11:12 AM
    That must be very frustrating, but don't shoot the messenger. I'm just a community volunteer here. 🙂
  • g

    gray-kilobyte-89541

    05/11/2023, 11:35 AM
    Calling a tool you don't know how to use "sh*t" and complaining how you spend an entire day NOT learning is pretty bad form. Please review resources in #763097415896268840 and #1024063123579224124
  • s

    swift-megabyte-13324

    05/11/2023, 11:51 AM
    I think you misunderstood. I didn't make a judgement about any tools. I just felt like I was being forced to do wasteful work for no good reason.
  • g

    gray-kilobyte-89541

    05/11/2023, 12:00 PM
    Then you expressed it really badly. Again, with this open source tool no one forces you to do any work. You can read extensive CI documentation, extensive Docker examples, study a course, etc. before you start coding. The only person doing wasteful work for no good reason is "Samu" here. Ok I am out.
  • s

    swift-megabyte-13324

    05/11/2023, 12:04 PM
    Not sure what you mean by "spending an entire day NOT learning" refers to either. In the end I could make it work. But I had to spend a lot of time for no concrete benefit.
  • s

    swift-megabyte-13324

    05/11/2023, 12:05 PM
    Sorry. I wasn't implying this as an insult to you. You have been tremendously helpful today. Thank you again.
  • s

    swift-megabyte-13324

    05/11/2023, 1:01 PM
    Besides aren't you basically agreeing with my conclusion by saying this on Github: > Hehehe they won’t stop rolling new versions. It is up to cypress to not freak out when chrome updates from 111 to 112 as if it is the end of the world
  • s

    swift-megabyte-13324

    05/11/2023, 1:01 PM
    Well it might be an open source tool. But we are also paying customers.
1...123124125126127Latest