https://cypress.io logo
Join Discord
Powered by
# help
  • b

    busy-vegetable-18177

    06/04/2022, 11:56 AM
    lmao
  • r

    ripe-action-59156

    06/04/2022, 11:56 AM
    hahaha
  • b

    busy-vegetable-18177

    06/04/2022, 12:18 PM
    so yeah idk how to fix this - it errors out on a completely unrelated operation. Is this a cypress bug?
  • a

    adventurous-branch-4501

    06/04/2022, 3:47 PM
    Hey, can you guys help me? I just updated my cypress from v.9 to 10, but when I try to open it but it said there was an error like this
  • a

    adventurous-branch-4501

    06/04/2022, 3:48 PM
    Error: EACCES: permission denied, stat '/root/.cache/Cypress/10.0.2/Cypress/Cypress'
  • b

    busy-vegetable-18177

    06/04/2022, 3:55 PM
    did you install it with sudo? try
    npm install
    again without sudo
  • a

    adventurous-branch-4501

    06/04/2022, 4:01 PM
    Thankyou! It helps
  • p

    purple-kilobyte-85592

    06/04/2022, 4:13 PM
    Did u find any help on this?
  • b

    busy-vegetable-18177

    06/04/2022, 4:13 PM
    nope 😦 maybe a team member could shed some light on this
  • b

    busy-vegetable-18177

    06/04/2022, 9:01 PM
    @wonderful-match-15836 sorry to ping but i see ur active right now, could you help with this?
  • w

    wonderful-match-15836

    06/04/2022, 9:10 PM
    Return a promise from a command...
  • f

    flaky-airport-12178

    06/05/2022, 9:24 AM
    Hi team, I hope all you are doing well
  • f

    flaky-airport-12178

    06/05/2022, 9:24 AM
    Have you verified the value from shadow dom?
  • g

    gray-kilobyte-89541

    06/05/2022, 12:05 PM
    https://on.cypress.io/shadow
  • m

    most-night-19949

    06/06/2022, 7:33 AM
    Hi All. I'm trying to implement Cypress for E2E testing on a backend only repo. Is this possible to do. If possible how do I handle passing the Okta access token required to pass in the headers for the APIs.
  • g

    green-book-63455

    06/06/2022, 8:46 AM
    Hi All, I guess this a fairly basic question but if an app is not a rest based app, can I still do a non UI login using cy.request('POST', '/p/login', { name: 'someone', password: 'something', }) Or does each test require a UI based login (which works fine).
  • b

    brave-processor-66066

    06/06/2022, 9:09 AM
    Hi all, is it possible to make the internal test cycle isolated so that there is also a toolbar for analysts, now it seemed to me that I was uploading my data to the portal on the Internet and only there it was convenient for me to view the analysis of the error project
  • r

    rhythmic-journalist-51620

    06/06/2022, 2:45 PM
    Hi all, does anyone know why I might be getting a No tests found error even though There are tests the file that I’m running?
  • b

    busy-vegetable-18177

    06/06/2022, 5:00 PM
    maybe you have a javascript syntax error in the file
  • h

    hundreds-action-33616

    06/06/2022, 10:21 PM
    Cypress fails to load the app every other time because of this issue. I just do cy.visit() for the base URL. The app is supposed to load the element
    .embeddedServiceHelpButton
    before triggering the function
    _allowSupportChat
    . In the browser, it always happens. But in Cypress
    .embeddedServiceHelpButton
    is not always there when
    _allowSupportChat
    is triggered. So it gives the console error and warnings about modified window functions. This is the function:
    Copy code
    private _allowSupportChat = (): void => {
            const supportChat = document.querySelector(".embeddedServiceHelpButton");
            (supportChat as any).style.display = "flex";
        }
    Unfortunately, I can not provide an example. But maybe you have any ideas about how I can wait for the
    .embeddedServiceHelpButton
    to be loaded before
    _allowSupportChat
    function is triggered?
  • g

    gray-kilobyte-89541

    06/06/2022, 10:42 PM
    well, if this happens due to some timing or race conditions, maybe do
    cy.visit('/'); cy.get('.embeddedServiceHelpButton')
    which ensures the element is there before proceeding
  • g

    green-translator-24136

    06/07/2022, 7:17 AM
    Hello guys, I'm using mac os monterey 12.4, and I'm having issues with cy.exec() function, it's not running at all,even as simple commands as echo. it's loading then I'm getting timeout error. do you guys have any idea? same code is working in the Imac of my office.
  • g

    green-translator-24136

    06/07/2022, 8:25 AM
    hey bro, did you solve this issue? I'm having the same problem
  • m

    mammoth-fish-55706

    06/07/2022, 8:38 AM
    Hi guys... what is the approach to verify the lenght of an html attribute ? like
    <button class="foo" title="a_long_name"><button>
    i like to assert the length of the title attribute (so that the text of the title is of a certain length) thanks šŸ™‚ I have found
    cy.get('button.foo').should('have.attr', 'title', 'a_long_name')
    , but would like to verify the length and not the string itself
  • f

    fresh-doctor-14925

    06/07/2022, 9:04 AM
    Are you referring to length of the string, or length of the element in pixels?
  • m

    mammoth-fish-55706

    06/07/2022, 9:12 AM
    the length of the string
  • m

    mammoth-fish-55706

    06/07/2022, 9:12 AM
    so
    a_long_name
    = 11 would be
  • c

    cold-accountant-75560

    06/07/2022, 9:25 AM
    Hi all I have an issue with an iframe placed on top on my app while automating it or embedding it through cypress not allowing me to interact with the app Im automating, if I open it from chrome it's fine. but while opening it through cypress browser, It says that the content is not editable... Is this a CORS ISSUE? what are the solutions I can have? should I juts change the testing framework. I already try using disableWebSecurity: false
  • f

    fresh-doctor-14925

    06/07/2022, 9:33 AM
    Got it. So you want to yield the text in that element. It'll be something like this:
    Copy code
    cy.get('button.foo')
      .invoke('text')
      .should('have.length', 11)
    That's from memory; haven't tried it before typing it out. Let me know if it doesn't work
  • n

    numerous-musician-23918

    06/07/2022, 9:40 AM
    Hi All- Hope everyone is doing well.Im just reaching out as we just enabled Azure Active Directory SSO and integrate it with our app build in react.Currently what i have is client id and tenant id.Just wang to reach out if you can share approach to handle AZURE AD SSO.Appreciate your help.
1...767778...252Latest