Introduction To Using cypress-if Plugin to Write Conditional Cypress Commands

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 41

  • @wessamjuby1242
    @wessamjuby1242 2 роки тому +3

    you're literally cypress godfather, thank you for all your efforts

  • @olurantiotuyinka95
    @olurantiotuyinka95 2 роки тому +2

    Thanks Gleb for another wonderful plug-in! Honestly you’re God sent. Your cypress videos and blogs have really helped me in my cypress journey!
    Could you please make a cypress video showing detailed steps of how to programmatically login through Amazon Cognito?
    Many thanks in anticipation!

  • @DarkoRiicDeveloper
    @DarkoRiicDeveloper 2 роки тому +5

    God of Cypress!

    • @defender8891
      @defender8891 2 роки тому +2

      Indeed he is

    • @brendanmeade4224
      @brendanmeade4224 2 роки тому +1

      And a very patient man with the endless daily directed questions on Gitter and Discord

  • @defender8891
    @defender8891 2 роки тому +7

    Cypress GOD mode

  • @teodorogar2475
    @teodorogar2475 Рік тому +1

    Wonderful!!! It look like real coding now! I mean I like both ways to perform those functions however the that plugin makes cypress "less" code less lol

  • @tomhanks3280
    @tomhanks3280 2 роки тому +1

    If-Cypress is no more a fantasy, here is Cypress-If! ♥Cypress

  • @patrickobi9217
    @patrickobi9217 2 роки тому +1

    Nice one Gleb. I prefer the long code than the pluggin library.
    That assertion disabling is great and I like it. .should with empty arrow function.

    • @gleb
      @gleb  2 роки тому +6

      I agree, I like being explicit, but I would love to have a built-in way of doing conditions in Cypress

  • @starSha1982
    @starSha1982 2 роки тому +2

    very useful command, especially for beginners.

  • @laerteMneto
    @laerteMneto 2 роки тому +2

    Omg, I am gonna use this a lot now. Thanks

  • @אופירבלומנטל
    @אופירבלומנטל 2 роки тому +1

    Finally! Thanks 🙏

  • @learning3650
    @learning3650 Рік тому +1

    Searching for bypass assertions and use if conditional almost 3days finally found it, thanks alot,
    Could you share how to recurse properly without getting memory error

    • @gleb
      @gleb  Рік тому

      I am sorry, I don't understand the question. Are you saying there is memory error in my example code? Or your own application? Could you ask your Cypress question at on.cypress.io/chat or on.cypress.io/discord or the specific repo via GH issues? It will be easier for your to provide code snippets, screenshots, etc to explain what you are trying to do. You could also help me answer Cypress-related questions faster by supporting me via GitHub sponsors github.com/sponsors/bahmutov, by buying my Cypress courses at cypress.tips/courses, or by inviting me to teach Cypress cypress.tips/workshops

  • @priyagurde8968
    @priyagurde8968 2 роки тому +2

    Please make a video on email testing in cypress. Example- user will get verification email in his inbox and he should click action button in email to set his password.

  • @RpMRickyMunoz
    @RpMRickyMunoz Рік тому

    Hi Gleb. I am having issue with cypress-if plugin with shelex allure reporter. Can you please suggest any workarounds.
    Basically the report generated by allure reporter is either not generated or is generated incorrectly. Thanks

    • @RpMRickyMunoz
      @RpMRickyMunoz Рік тому

      And i confirmed after removing cypress if, it works fine

    • @RpMRickyMunoz
      @RpMRickyMunoz Рік тому

      My cypress version is 8.7.0

    • @gleb
      @gleb  Рік тому

      I am sorry, I don't understand the question. Could you ask your Cypress question at on.cypress.io/chat or on.cypress.io/discord or the specific repo via GH issues? It will be easier for your to provide code snippets, screenshots, etc to explain what you are trying to do. You could also help me answer Cypress-related questions faster by supporting me via GitHub sponsors github.com/sponsors/bahmutov, by buying my Cypress courses at cypress.tips/courses, or by inviting me to teach Cypress cypress.tips/workshops

  • @andrewpopenko1087
    @andrewpopenko1087 2 роки тому +1

    briliant!

  • @flipu2k
    @flipu2k Рік тому

    I think this should have been again compatible with Cypress since v12.6.0, but I can't get it working in v12.9.0, any idea if there still is an issue?

    • @gleb
      @gleb  Рік тому +1

      Why would it be suddenly compatible? The issue is still open github.com/bahmutov/cypress-if/issues/58

  • @harshithabetsolqa
    @harshithabetsolqa 7 місяців тому +1

    Thanks alot

  • @diybysobi163
    @diybysobi163 2 роки тому +1

    Hi could you please make video on Cypress api automation? By using authenticated login api and return token from that api and use it in some other api (page object model) or some other class.
    I am able to return token as response but unable to use it in other class or page

    • @gleb
      @gleb  Рік тому

      Something like this glebbahmutov.com/blog/csrf-testing/

  • @drmouradraafat2005
    @drmouradraafat2005 2 роки тому

    how would you insert a half note in the channel rack

    • @gleb
      @gleb  2 роки тому

      ???

  • @barscanates5573
    @barscanates5573 2 роки тому

    A m very angry as the person which you showed in video :D I want the freedom while using if else and using elements in cypress :) Thank you for the helping :) !!

    • @gleb
      @gleb  2 роки тому +1

      “Fear is the path to the dark side…fear leads to anger…anger leads to hate…hate leads to suffering.” - Master Yoda

  • @VinayakBajpayee-n3c
    @VinayakBajpayee-n3c Рік тому

    The following error originated from your test code, not from Cypress.
    > Cannot overwite the get query. Queries can only be overwritten with Cypress.Commands.overwriteQuery().
    When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
    Cypress could not associate this error to any specific test. getting this

    • @gleb
      @gleb  Рік тому +1

      Cypress v12 broke this plugin, see the GitHub issue in the cypress-if repo

  • @randycanela1818
    @randycanela1818 Рік тому

    cypress dont work in cypress 12.6 error with import

    • @gleb
      @gleb  Рік тому

      Yes, there is an open issue about it :(

  • @MdRahmansakibespak
    @MdRahmansakibespak 2 роки тому

    How to check url contains text using if condition

    • @gleb
      @gleb  2 роки тому

      ? can you give a code fragment?

    • @JK-241
      @JK-241 2 роки тому

      can you do cy.url contains and then do the if?

    • @gleb
      @gleb  2 роки тому

      @@JK-241 Yup, I don't see why it would be different github.com/bahmutov/cypress-if/pull/26

  • @MuratKeremOzcan
    @MuratKeremOzcan 2 роки тому

    this is something I will use and not tell