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

    some-thailand-3202

    09/02/2022, 1:35 PM
    Hello. I'm a Senior QA Engineer. I'm evaluating the tools that we might use for our automation framework. Could somebody help me with answering a couple of questions about the Cypress, please. I've watched the "Cypress in a Nutshell" video. As far as I understood for writing tests in Cypress is used a special "language" and set of functions. So my question is - currently he have our tests written in C# , we use Selenium and SpeckFlow for Scenarios description in Gherkin language. As far as I understand if we will decide to use Cypress we will have to rewrite all our tests and there is no alternative in Cypress for the SpeckFlow? Like it's not possible to write Test cases in Gherkin and implementation itself in a Cypress language? Or am I wrong?
    c
    • 2
    • 2
  • s

    salmon-computer-88142

    09/02/2022, 1:47 PM
    You can use gherkin with cypress , but cypress is written in JavaScript and it is not using selenium
  • c

    colossal-farmer-50435

    09/02/2022, 1:48 PM
    Hello I m a Senior QA Engineer I m
  • s

    some-thailand-3202

    09/02/2022, 1:50 PM
    Ok. Good to know that it's possible to use Gherkin. Thank you for the answer.
  • b

    bitter-fountain-36713

    09/02/2022, 8:51 PM
    If you are checking if they don't exist in the dom, you can use the same command to query it and then .should('not.exist')
  • a

    aloof-football-89504

    09/02/2022, 10:54 PM
    hi guys, how can i select an list item, like my frontend is vue.js cy.contains('div', 'Código da Loja') here i find the field, but now i want to bringdown the list, and select for example, 09000012
  • c

    cold-eye-66538

    09/03/2022, 2:43 PM
    There are a lot of different ways. Try using https://docs.cypress.io/api/commands/children#Command-Log
  • b

    boundless-activity-75504

    09/03/2022, 3:23 PM
    Guys. what is the best pratic to store message erro ? for example. in a form a have "fild is required" but this message is used in many test ...what is the best pratice where to store it ??
  • a

    aloof-football-89504

    09/03/2022, 8:26 PM
    Thanks, I tried but.. no way... 🥲
  • s

    salmon-computer-88142

    09/04/2022, 7:26 AM
    how do i know if element is scrollable?
    c
    • 2
    • 1
  • c

    colossal-farmer-50435

    09/05/2022, 6:35 AM
    how do i know if element is scrollable
  • g

    gray-rain-55074

    09/05/2022, 3:21 PM
    I get this error when I hit 'npm run test' C:\Users\u46827\AppData\Local\Cypress\Cache\10.7.0\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_plugins.js:40 invoke = (eventId, args = []) => { SyntaxError: Unexpected token = at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:656:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (C:\Users\u46827\AppData\Local\Cypress\Cache\10.7.0\Cypress\resources\app\node_modules\@packages\server\lib\plugins\child\run_require_async_child.js:6:24) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3)
  • g

    gray-rain-55074

    09/05/2022, 3:22 PM
    I think there are some errors with plugins in node-modules, but don't know how to fix it.
  • g

    gray-rain-55074

    09/06/2022, 1:01 AM
    I found the issue. It was Node old version. I upgraded the node to 16 and it worked.
  • n

    nice-machine-16386

    09/07/2022, 5:44 PM
    We're seeing some long network requests when running in cypress (test runner, cypress 10.6). Outside cypress, they take about 250ms, inside cypress over 2 seconds. The additional time in cypress is due to the requests being stalled. Sound familiar to anyone? Dev tools documentation is pointing me to possible disk caching issues but I'm not sure how to troubleshoot that.
  • b

    bumpy-pizza-32454

    09/08/2022, 3:52 AM
    How does
    cy.visit()
    wait for the page to load? According to the documentation it seems to rely on the
    load
    event, but that doesn't take into consideration asynchronous javascript while cypress does. I'm trying to replicate this behavior in puppeteer for a prerenderer. Thanks in advance!
  • p

    prehistoric-restaurant-72560

    09/08/2022, 11:36 AM
    Hey guys, I would like to ask you if you use component testing, at your company? I'm struggling to leverage this tool and looking for some context how and when it would give me an edge.
  • w

    wide-petabyte-77556

    09/08/2022, 1:11 PM
    Team, I need help, I am not able to Transfer ownership of cypress dashboard. I am getting error occurred message
  • m

    mysterious-motherboard-13344

    09/08/2022, 1:13 PM
    Check if you are using correct email address of the user and also, please check how many users are allowed with your current license.
  • w

    wide-petabyte-77556

    09/08/2022, 1:19 PM
    Thanks @mysterious-motherboard-13344 for checking this, We are only 2 users added to the dashboard & when we click on transfer ownership button it automatically populates the other users that are added.. but after selecting the other user getting this error
  • g

    gray-kilobyte-89541

    09/08/2022, 2:14 PM
    https://www.cypress.io/blog/2022/08/25/how-component-testing-changed-our-workflow-and-how-i-came-to-work-at-cypress/
  • b

    boundless-activity-75504

    09/08/2022, 2:35 PM
    good morning. why, when a use this require from common/Functions, cypress give me the erro :Webpack Compilation Error?
  • g

    gray-kilobyte-89541

    09/08/2022, 2:43 PM
    If you search https://cypress.tips/search you will find a related blog post. Basically, Cypress knows nothing about your aliases in your webpack config, I think
  • b

    boundless-activity-75504

    09/08/2022, 4:40 PM
    do you know how to resolve this ? i cant find the solution in search post you shared
  • b

    bitter-fountain-36713

    09/08/2022, 4:41 PM
    Have you tried the import approach?
  • b

    boundless-activity-75504

    09/08/2022, 4:49 PM
    yes. import { formatMoney } from "./../../../src/common/Functions";
  • b

    boundless-activity-75504

    09/08/2022, 4:52 PM
    but when i use in a it test like cy.get('[data-cy="current-balance"] > .text').contains(formatMoney(1000));. cypress give me a erro l
  • b

    boundless-activity-75504

    09/08/2022, 5:02 PM
    do u know how to resolve ?
  • g

    gray-kilobyte-89541

    09/08/2022, 5:29 PM
    It depends on your project, is the
    formatMoney
    imported correctly? Can you set up a small repo with the web config, etc?
  • b

    boundless-activity-75504

    09/08/2022, 5:39 PM
    yes. imported correctly..
1...798081...127Latest