https://cypress.io logo
Join Discord
Powered by
# e2e-testing
  • f

    future-gold-77198

    08/23/2021, 5:35 PM
    This worked out well in the end, so I guess I shouldn't have been so worried. It did take me some time to figure out the minimum number of times/places to use cy.visit('/') though 😀
  • f

    fancy-airplane-60156

    08/24/2021, 6:18 AM
    Hi everyone ! I've created two custom commands. I'm trying to call first command in the second one. Is this a correct way ? Does the cypress framework allow this ?
  • s

    some-photographer-65085

    08/24/2021, 2:15 PM
    the nested calling, I think its ok, I saw that implementation on a tutorial
  • g

    gray-kilobyte-89541

    08/24/2021, 3:54 PM
    sure you can https://glebbahmutov.com/cypress-examples/8.3.0/cypress-api/#cypress-commands-add
  • f

    fancy-airplane-60156

    08/25/2021, 9:48 AM
    Thanks @User It's working now. I had an issue with one of the functions.
  • f

    fancy-airplane-60156

    08/25/2021, 9:49 AM
    Thanks @User Yes I referred this and realized it's an error in my code. Fixed it now, it's working.
  • s

    some-photographer-65085

    08/25/2021, 1:05 PM
    great, perfect
  • b

    boundless-activity-75504

    08/25/2021, 11:04 PM
    guys, why the second time I run my jobs in gitlab ci does this error happen? is it a chache problem ? how to resolve this ?
  • i

    important-river-75795

    08/26/2021, 8:44 AM
    Can you show a few lines higher?
  • b

    boundless-activity-75504

    08/26/2021, 11:27 AM
    yes. ! this is another run . but have the same error
  • f

    fancy-airplane-60156

    08/27/2021, 5:58 AM
    Hi, Anyone can point me to simple test report generator information page. I'm using below, it's not giving me any output and also crashes my index.js file
  • f

    fancy-airplane-60156

    08/27/2021, 5:58 AM
    https://github.com/LironEr/cypress-mochawesome-reporter
  • g

    gray-kilobyte-89541

    09/01/2021, 7:29 PM
    look at the reporter plugins at https://on.cypress.io/plugins and at https://on.cypress.io/reporters
  • f

    fancy-airplane-60156

    09/02/2021, 5:44 AM
    Thanks @User I used this and ran commands on CLI. I could generate the reports succesfully.
  • f

    fancy-airplane-60156

    09/02/2021, 6:06 AM
    Hi @User I referred this below article to create my end to end tests. My tests have a multiple page forms in them. All my actions are in command.js file, I'm calling them from my test. I've created a task to read my Json file before the test and assign the data to a const object in the test. However the problem I'm facing is that test data is not accessible when these commands are executed . I get this error "testData is undefined". It'd be great if you can suggest how to handle this situation. https://www.cypress.io/blog/2019/01/03/stop-using-page-objects-and-start-using-app-actions/#page-objects-problems
  • g

    gray-kilobyte-89541

    09/02/2021, 1:22 PM
    Can you make your code public or create a public example out of it? Otherwise I have no idea what you are doing there
  • g

    gray-kilobyte-89541

    09/03/2021, 3:53 PM
    Did someone say "mocking is only for unit/component tests? Impossible during the E2E web tests without modifying the app code?" Not so fast! Mock ES6 Module From Cypress.io E2E Test

    https://youtu.be/RAFdYqRO2vIâ–¾

  • u

    user

    09/03/2021, 5:13 PM
    Hi Everyone As a JavaScript & PHP software engineer, I am looking for a full-time job using my skills recently. If you have any jobs, please let me know. I hope your business is doing well Thanks for your time.
  • f

    fancy-airplane-60156

    09/04/2021, 10:12 AM
    Thanks I'll create one asap and share with you, thanks for respondng
  • a

    ambitious-author-5580

    09/05/2021, 12:01 AM
    Hi everyone, When do we need to use cy.request on e2e test? is it to make sure an element appears after xhr is finished or any reason? Because when I test without cy.request the element that I expected still show.
  • a

    ambitious-author-5580

    09/05/2021, 12:01 AM
    Thanks for your response.
  • g

    gray-kilobyte-89541

    09/06/2021, 8:49 AM
    read the examples in https://on.cypress.io/request and real-world usage in repo cypress-example-recipes
  • a

    ambitious-author-5580

    09/06/2021, 9:37 AM
    Oke, maybe I'll check the real world apps using cypress . Thank you
  • t

    thankful-lunch-80439

    09/09/2021, 2:25 AM
    Is
    Cypress.LocalStorage.clear = () => {};
    a kosher way to prevent local storage from clearing between cases?
  • k

    kind-minister-59159

    09/10/2021, 2:14 AM
    I clear local access session storage between my test cases
  • f

    fast-action-74989

    09/10/2021, 7:12 AM
    Hi @everyone I have to run the tests from the terminal, using the command npm run cy: run, and I would need to see console errors from the terminal somehow, or get a screen like when a test fails. is it possible to do it somehow? like see the cy.stub list in the terminal
  • i

    important-river-75795

    09/10/2021, 7:59 AM
    @User This might be something you are looking for https://github.com/cypress-io/cypress/issues/3199#issuecomment-466593084
  • f

    fast-action-74989

    09/10/2021, 12:30 PM
    thank you so much
  • t

    thankful-lunch-80439

    09/10/2021, 6:11 PM
    How do you do so?
  • k

    kind-minister-59159

    09/10/2021, 6:52 PM
    I created a command in commands.ts function clearSiteData() { cy.window().then((win) => { win.sessionStorage.clear(); }) cy.clearLocalStorage(); cy.clearCookies(); }
1...212223...192Latest