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

    many-airline-45402

    04/17/2023, 1:44 PM
    @powerful-orange-86819 I couldn't see any error when I followed the link https://docs.cypress.io/guides/continuous-integration/introduction#Official-Cypress-Docker-Images which you gave. This links to https://hub.docker.com/r/cypress/browsers/ which is a level above the link https://hub.docker.com/r/cypress/browsers/tags which I posted. Do you think any of the posted links needs to be corrected?
  • b

    best-flower-17510

    04/17/2023, 2:27 PM
    Thanks for the compliment! Discord launched the new Onboarding feature earlier last year. Here are the details - https://support.discord.com/hc/en-us/articles/11074987197975-Community-Onboarding-FAQ#:~:text=How%20do%20I%20set%20up%20Community%20Onboarding%3F,-1.&text=First%2C%20head%20over%20to%20Server,list%20when%20joining%20your%20Community.
  • a

    acceptable-family-97943

    04/17/2023, 3:57 PM
    I'll post it here, since I can't find anything in regards to this. For component testing in Angular, we have some scss defined on our Angular component with
    style:['some scss']
    . When mounting this component with Cypress, none of these styles are added. However, when I put these styles in a separate stylesheet and reference to it with
    styleUrls: ['url']
    instead, it is included. Anyone know if this is by design or a configuration issue of sorts? (This happens on both 12.6 and 12.9)
  • e

    elegant-scooter-88833

    04/17/2023, 4:08 PM
    Hey @acceptable-family-97943 thanks for reaching our. This is certainly not a design decision. It could be a bug. Can you create a reproducible example and create an issue here https://github.com/cypress-io/cypress/issues/new?assignees=&labels=&template=1-bug-report.yml?
  • a

    acceptable-family-97943

    04/17/2023, 4:19 PM
    I will look into that tomorrow as I have just left work for today. Thanks for the swift response!
  • e

    elegant-scooter-88833

    04/17/2023, 4:19 PM
    My pleasure
  • f

    flaky-napkin-28018

    04/17/2023, 4:56 PM
    It worked for Firefox only. I got the Aw snap error in Chrome and Electron SIGSEGV error. Is there any workaround possible? BTW I am using the latest Cypress version 12.9.0 now.
  • f

    flaky-napkin-28018

    04/17/2023, 5:00 PM
    Please help!
  • a

    adorable-smartphone-87280

    04/17/2023, 5:41 PM
    There may be no work around possible if Chrome is imposing the limit.
  • e

    early-computer-34425

    04/18/2023, 7:32 AM
    I noticed we had old cypress tests here, and all are written into .js files, I noticed that new project in cypress are using typescript files, would it good to change all files to typescript?
  • m

    mysterious-belgium-25713

    04/18/2023, 8:48 AM
    Typescript is not mandatory, you can just keep using javascript
  • a

    acceptable-family-97943

    04/18/2023, 1:55 PM
    It has been created. Took me some time to get a reproducible example working šŸ‘Œ Thanks for the follow-up!
  • e

    elegant-scooter-88833

    04/18/2023, 2:18 PM
    Got it triaged. It is added to our backlog, hoping we can get to it in near future
  • a

    agreeable-terabyte-10635

    04/18/2023, 6:29 PM
    One Thing I'm missing in cypress is the ability to only execute ONE test within a "describe()" method... I'm curious why this is not possible. Am I the only one missing this feature? šŸ˜†
  • a

    agreeable-terabyte-10635

    04/18/2023, 6:31 PM
    I'm working on projects where there are kinda big cy files with many tests.. the first thing I do when Im writing a new test, is to comment out all other tests to be faster in dev process šŸ˜
  • e

    enough-truck-68085

    04/18/2023, 6:39 PM
    You can just do
    it.only
    on a single test and run that? https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Excluding-and-Including-Tests
  • a

    agreeable-terabyte-10635

    04/18/2023, 6:43 PM
    Nooooooooo f***ng way bro?!?! Niceeeeee! Thank you man! Didn't know that... Can you image how much time I could have saved in the last 5 years?! šŸ˜‚
  • a

    adorable-smartphone-87280

    04/18/2023, 7:15 PM
    You’ll love ā€˜it.skip’ too.
  • g

    green-elephant-92285

    04/18/2023, 10:19 PM
    Guys I have a pretty simple question. But I just can’t seem to remember. Basically I want to write an if condition, where if an element is present I’d do xyz. Else, if the element is not present, do something else. Now the problem is, cypress will keep trying to find the element until it fails. I don’t know how to reach the else statement and not fail the test
  • g

    gray-kilobyte-89541

    04/19/2023, 12:40 AM
    Search for conditional testing at https://glebbahmutov.com/cypress-examples
  • g

    green-elephant-92285

    04/19/2023, 2:02 AM
    I may end up using your cypress-if library !
  • g

    green-elephant-92285

    04/19/2023, 2:02 AM
    Also I’ve been using your website for a while now. Literally the most helpful resource out there! Thank you!
  • a

    acceptable-family-97943

    04/19/2023, 8:47 AM
    Does anyone know if it's possible to intercept GET requests for fonts? I'm trying to visually test a component, but having inconsistent results since the fonts aren't always loaded in immediately. Tried to assert the FontFaceAPI already to see if they're loaded in, but it's still inconsistent. Really want to avoid using arbitrary waits
  • g

    gray-kilobyte-89541

    04/19/2023, 12:44 PM
    just a note: cypress-if does not work with Cypress v12, since they changed how command are implemented. https://glebbahmutov.com/blog/upgrade-cypress-v9-to-v12/
  • g

    gray-kilobyte-89541

    04/19/2023, 12:47 PM
    yes, I have a font example by searching "font" at https://cypress.tips/search or by taking my paid course https://cypress.tips/courses/network-testing/lessons/bonus11
  • a

    acceptable-family-97943

    04/19/2023, 12:48 PM
    I stumbled upon that later on and it works like a charm using your cypress-cdp package worked beautifully
  • a

    acceptable-family-97943

    04/19/2023, 1:54 PM
    Feel like I'm posting a lot of questions recently, but I stumbled upon an issue where I have a component that extends from a base directive. The component uses OnPush as a changedetection strategy and when I run my component test, I get a null ref error when it tries to execute
    this._changeDetectorRef.markForCheck()

    https://cdn.discordapp.com/attachments/763114122065739818/1098245255482048572/image.pngā–¾

    https://cdn.discordapp.com/attachments/763114122065739818/1098245255746306048/image.pngā–¾

  • m

    modern-fish-67741

    04/19/2023, 2:45 PM
    @gray-kilobyte-89541 is it a known issue that it.only doesn’t work with cypress-grep when using the tags object? i.e it.only(ā€˜test case 1’, {tags : ā€˜development’})
  • m

    modern-fish-67741

    04/19/2023, 2:47 PM

    https://cdn.discordapp.com/attachments/763114122065739818/1098258593364594868/Screenshot_2023-04-19_at_7.46.50_AM.pngā–¾

  • g

    gray-kilobyte-89541

    04/19/2023, 3:04 PM
    Is there an issue at https://github.com/bahmutov/cy-grep
1...121122123...127Latest