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

    silly-journalist-41771

    06/19/2022, 5:54 PM
    I imported to spec file
  • s

    silly-journalist-41771

    06/19/2022, 5:54 PM
    like this
  • s

    silly-journalist-41771

    06/19/2022, 6:00 PM
    don't I need to name the class?
  • s

    silly-journalist-41771

    06/19/2022, 6:03 PM
    this doesn't look right
  • c

    cuddly-thailand-33926

    06/19/2022, 7:13 PM
    Import BankPage from '../Pages/basketPagePO' const Bank = BankPage.assertion Then in it block Bank.strawberryProtein().your assertion
  • a

    average-market-67864

    06/19/2022, 7:35 PM
    Hi all, i'm new at the Cypress world, but an old Selenium timer. I have a question, i would like to create standalone project that will have Cypress, configurations, custom commands, tools, etc... that will serve different development groups, the goal is to have global standard for testing in the company. each groups has it's own project and repo and i would like them to have the tests developed in their project and repo while using the generic cypress infrastructure project, is it possible to wrap cypress in a way that i'll make the project as an npm module and the other projects will import it while all they will need to do is to develop tests and use the custom commands, tools, etc? i've used to do that with Selenium and Java, but here in cypress everything seems so magically happening behind the scenes that i'm not sure how to start, i'll be very much appreciating to know if it is possible and if is it a good practice at all with cypress, Thanks!
  • g

    gray-kilobyte-89541

    06/19/2022, 8:00 PM
    Sure, you can make custom commands / pieces of plugins and other small utility functions and publish them on NPM - it is just like regular javascript https://glebbahmutov.com/blog/publishing-cypress-command
  • a

    average-market-67864

    06/19/2022, 8:13 PM
    Thanks! 🙂 I've actually visited your blog previously, on a different post, it has very nice content, well done and thank you for that knowledge sharing. What i want to do, is also to control the cypress support files and the cypress release version so once i update those in the main project, all of the different development project doesn't need to do anything
  • p

    prehistoric-restaurant-72560

    06/19/2022, 8:20 PM
    Is Component testing possible with v10 for Angular or should I wait for updates?
    • 1
    • 1
  • g

    gray-kilobyte-89541

    06/20/2022, 12:56 AM
    In that case your dependency can include Cypress as its own production dependency, so every user project can just install your "cypress-testing" NPM and be done.
  • s

    swift-angle-95455

    06/20/2022, 3:47 AM
    Can anybody help me with Auth0 guide? The question is in the "help" channel. Thank you in advance! 🙂
  • n

    nice-businessperson-99732

    06/20/2022, 9:07 AM
    Hi All, I'm new to cypress...I got stuck with an issue When we enter email and click on a submit button... 1. If non-test user, then in the same page password input field will be displayed...Then enter password and click on submit....It is redirecting to page expired screen 2. If test user, once after entering email and click on submit, page is keep on loading...........But should redirect to OneIdentity login page for password Can anyone please help me to solve this?
  • a

    average-market-67864

    06/20/2022, 9:15 AM
    Thanks! and then i can use the 'cypress.run' in the "cypress-testing" index.js to be the entry point of execution, right? in order to trigger it from the user project, what shall i do ?
  • l

    loud-vase-48777

    06/20/2022, 9:15 AM
    hi, i have to test a custom shortcut in my app its control + mouse click on a component, how can i do it cypress, i used trigger for control key but its not released
  • l

    loud-vase-48777

    06/20/2022, 9:18 AM
    Copy code
    ts
          cy.trigger('keydown', { keycode: keys.control, release: false });
          cy.get(ligne).click({force: true});
  • l

    loud-vase-48777

    06/20/2022, 9:18 AM
    keys.control is 17
  • p

    prehistoric-apple-68554

    06/20/2022, 9:35 AM
    Hi, I need help! Scenario - I am accessing my Gmail account in commands.js >> getting the requested email body, then pulling the data from the body, and saving it in a variable >> now I want to .type the pulled variable value in my testFile.cy.js. Can anyone help me to do this?
  • s

    silly-journalist-41771

    06/20/2022, 11:20 AM
    hey how what wait method can I use that stops the wait and carries on my test after the locator is found and clicked?
  • s

    silly-journalist-41771

    06/20/2022, 11:24 AM
    @cuddly-thailand-33926
  • c

    cuddly-thailand-33926

    06/20/2022, 11:26 AM
    Okay so when you run your tests, you see the api calls running Find the appropriate one Intercept it Give it an alias So cy.intercept('/storeUsers/**').as('users')
  • c

    cuddly-thailand-33926

    06/20/2022, 11:26 AM
    Then do cy.wait(@users)
  • c

    cuddly-thailand-33926

    06/20/2022, 11:27 AM
    It's easier if you have good Swagger Documentation of your Apis
  • c

    cuddly-thailand-33926

    06/20/2022, 11:28 AM
    @silly-journalist-41771 😇
  • s

    silly-journalist-41771

    06/20/2022, 11:29 AM
    woooow that's cool
  • s

    silly-journalist-41771

    06/20/2022, 11:30 AM
    I'm guessing I can only do that for publicly available API's
  • s

    silly-journalist-41771

    06/20/2022, 11:31 AM
    or can I do that for any API even without authorization
  • c

    cuddly-thailand-33926

    06/20/2022, 11:33 AM
    Use Cy.route() for more configurable intercepts, should work the same way, tho I have not used it yet truthfully
  • s

    silly-journalist-41771

    06/20/2022, 11:35 AM
    would you be able to check my automation some time and let me know if I'm on the right path
  • s

    silly-journalist-41771

    06/20/2022, 11:35 AM
    and using best practices
  • s

    silly-journalist-41771

    06/20/2022, 11:35 AM
    I need to showcase it soon
1...535455...127Latest