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

    user

    10/22/2021, 10:48 AM
    Does cypress support filename.tar.gz file upload? clickBrowse(){ const fileName = 'filename.tar.gz' cy.xpath('//input[@type="file"]') .attachFile(fileName) return this } if I give .zip, .css, .txt, .jsp files it works but with .tar.gz file I get error
  • f

    fancy-airplane-60156

    10/23/2021, 3:20 AM
    hi @User I read your article on JSON schema validation. Just wondering if there is any updated version of it or I can go ahead and follow this
  • f

    fancy-airplane-60156

    10/23/2021, 3:20 AM
    https://www.cypress.io/blog/2018/07/10/json-schemas-are-your-true-testing-friend/
  • g

    gray-kilobyte-89541

    10/25/2021, 11:53 AM
    have you searched https://cypress.tips/search ? If I have anything, it would be linked there
  • g

    gray-kilobyte-89541

    10/25/2021, 2:51 PM
    A few short videos showing how to stub window.alert and window.prompt:

    https://youtu.be/wnFLb04iJp8▾

    and

    https://youtu.be/NdeHg0u8Wro▾

    with the full source code examples at https://glebbahmutov.com/cypress-examples/commands/spies-stubs-clocks.html
  • f

    fancy-airplane-60156

    10/26/2021, 10:01 AM
    Thank you so much for this. I'll check further in the tips page.
  • m

    magnificent-rose-67179

    10/27/2021, 11:22 AM
    Hello
  • m

    magnificent-rose-67179

    10/27/2021, 11:22 AM
    Since we updated Cypress all our tests are extremely slow, or die from a max memory error
  • m

    magnificent-rose-67179

    10/27/2021, 11:22 AM
    What is the best way to debug it?
  • m

    magnificent-rose-67179

    10/27/2021, 12:08 PM
    Seems like it comes from instructions like :
    cy.findByText("Your project has been created").should("exist");
    or
    cy.findByLabelText("Project Name").should("not.exist");
    which are targeting drawers/snackbars that should show/hide
  • m

    magnificent-rose-67179

    10/27/2021, 12:08 PM
    is there a better way to query those components ?
  • m

    magnificent-rose-67179

    10/27/2021, 12:08 PM
    for example :
    cy.findByText("Your project has been created").should("exist");
    is supposed to be a snackbar that shows after a form submit
  • m

    magnificent-rose-67179

    10/27/2021, 12:09 PM
    it seems that Cypress is waiting forever for this element and miss it
  • m

    magnificent-rose-67179

    10/27/2021, 12:14 PM
    I see that there is a plugin : https://github.com/NoriSte/cypress-wait-until
  • m

    magnificent-rose-67179

    10/27/2021, 12:14 PM
    Is there nothing in core cypress to do it? 🤔
  • f

    future-journalist-95278

    10/29/2021, 12:20 AM
    I'm running into a pluginsFile error:
    Copy code
    Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: .../index.js require() of ES modules is not supported.
    
    require() of .../index.js from .../index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
    
    Instead rename .../index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from .../package.json.
    This error comes from this code:
    Copy code
    js
    const clipboardy = require('clipboardy')
    
    module.exports = (on) => {
      on('task', {
        getClipboard() {
          return clipboard.readSync()
        },
      })
    }
  • f

    future-journalist-95278

    10/29/2021, 12:21 AM
    When I changed to an import statement, I get this error:
    Copy code
    import clipboard from 'clipboardy'
    ^^^^^^
    
    SyntaxError: Cannot use import statement outside a module
  • g

    glamorous-monkey-67605

    11/02/2021, 7:19 PM
    I'm running into an error following instructions integrating Cypress and TestRail using cypress-testrail-simple
  • g

    glamorous-monkey-67605

    11/02/2021, 7:20 PM
    I am getting a 400 bad request error
  • g

    glamorous-monkey-67605

    11/02/2021, 7:20 PM
    I have made sure my host, username and password is correct. Since changing any of those gives me a different 401 error or bad url error.
  • g

    glamorous-monkey-67605

    11/02/2021, 7:21 PM
    The projectid is correct as well as it's logging it correctly on my console.
  • g

    glamorous-monkey-67605

    11/02/2021, 7:21 PM
    It knows the number of case IDs
  • g

    glamorous-monkey-67605

    11/02/2021, 7:21 PM
    It fails at the next step to add a test run to my project.
  • g

    glamorous-monkey-67605

    11/02/2021, 7:26 PM
    @gray-kilobyte-89541 do you recall if the cypress-testrail-simple handle multiple suites in a project?
  • g

    gray-kilobyte-89541

    11/02/2021, 7:53 PM
    nope, suite ids are not supported, https://github.com/bahmutov/cypress-testrail-simple/issues/11
  • f

    future-eye-56254

    11/03/2021, 7:10 AM
    This is the Label How to select the radio button based on the Label (ex : This is the Label)
  • i

    important-river-75795

    11/03/2021, 7:51 AM
    cy.get("#useSetupTask_x").contains("This is the Label") should return that button
  • f

    future-eye-56254

    11/03/2021, 7:52 AM
    unfortunately it didn't
  • g

    gray-kilobyte-89541

    11/04/2021, 11:24 AM
    read https://glebbahmutov.com/blog/writing-custom-cypress-command/
  • w

    wonderful-match-15836

    11/05/2021, 1:16 PM
    Did you get this worked out? I think one issue is that your label needs a
    for
    attribute of
    useSetupTask_x
    so that it is associated with the radio button. Then selecting and clicking on the label should activate the radio button, and you would not need to select the input itself via the label. There is also a
    cy.findByLabelText
    command as part of cypress-testing-library (https://testing-library.com/docs/cypress-testing-library/intro/) which is what I typically use for this. It's a handy package to install for some of these common tasks, and does what you are looking for here, so you could either install it or check out the implementation for that kind of selector.
1...202122...127Latest