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

    stocky-dream-36427

    05/12/2021, 1:00 AM
    You could also put it in the general channel
  • l

    limited-keyboard-75773

    05/12/2021, 1:01 AM
    Sounds good, thanks Jess!
  • s

    stocky-dream-36427

    05/12/2021, 1:01 AM
    @User #841842341136302080 now exists 😛
  • s

    stocky-dream-36427

    05/12/2021, 1:01 AM
    Good call
  • m

    many-jackal-86011

    05/13/2021, 11:21 AM
    Hello guys
  • m

    many-jackal-86011

    05/13/2021, 11:22 AM
    please tell me how to open site behind Cloudflare?
  • s

    stocky-dream-36427

    05/13/2021, 10:47 PM
    @User can you post in help please?
  • u

    user

    05/19/2021, 12:16 AM
    Hello everyone! I am helping out a blockchain-based web application with their QA and think that Cypress would be a great tool for testing the app, but was wondering if there’s a recommended way to do site logins using web wallets like MetaMask and Arkane. Any and all recommendations are welcome!
  • g

    green-byte-3172

    05/19/2021, 7:13 PM
    hello what is this channel for
  • s

    sparse-jackal-93514

    05/19/2021, 7:16 PM
    can you provide an example?
  • b

    bulky-sundown-74498

    05/19/2021, 7:18 PM
    If you don't know what other channel to talk on or if we want to give you general info on new major/minor releases of cypress
  • c

    calm-megabyte-68237

    05/19/2021, 7:20 PM
    How can I intercept a network response without modifying it? I want the original server response, and only to check a status code from it.
  • c

    calm-megabyte-68237

    05/19/2021, 7:21 PM
    D'oh, never mind me. I mixed up the method and the URL parameter order.
  • s

    stocky-dream-36427

    05/19/2021, 7:51 PM
    @User can you use #763105090679865354 please?
  • s

    stocky-dream-36427

    05/19/2021, 7:51 PM
    sorry for redirecting you, but trying to keep the channel clear of code etc (which is why #763105090679865354 exists)
  • b

    bumpy-toddler-47155

    05/19/2021, 7:57 PM
    Certainly - my first time here. TY
  • u

    user

    05/19/2021, 11:37 PM
    Any recommendations on testing decentralized applications that utilize web wallet connections?
  • u

    user

    05/19/2021, 11:38 PM
    I’m trying to test that I can sign transactions in a web wallet like MetaMask.
  • s

    stocky-dream-36427

    05/19/2021, 11:49 PM
    @User I really don't know if Cypress is the best utility for it. If you're trying to do things that depend more on the contract than on what's rendered, I would suggest Puppeteer or Playwright
  • s

    stocky-dream-36427

    05/19/2021, 11:50 PM
    If there's a "front door" that you're trying to test, then I think it makes sense to test the UI with that... but... as for e2e testing the contract of the wallet... I don't know if I would try to do that inside of Cypress.
  • s

    stocky-dream-36427

    05/19/2021, 11:50 PM
    If you have an example repository you might be able to get more help, but this isn't something common so I don't think anyone has a recipe on hand for it.
  • s

    stocky-dream-36427

    05/19/2021, 11:51 PM
    I think you technically can do it inside of Cypress if you use cy.intercept to respond with the proper response body (you have access to the raw request)
  • u

    user

    05/20/2021, 1:24 AM
    @stocky-dream-36427 thanks for the ideas! I’ll take a look at them and see if I can find something that will work. I just need the wallet for sign-in purposes primarily and then should be able to test the rest of the site using Cypress or a similar tool as there aren’t too many other instances where the wallet pop-up would be displayed.
  • u

    user

    05/20/2021, 1:25 AM
    The site is a blockchain-based game.
  • s

    stocky-dream-36427

    05/20/2021, 1:59 AM
    Ah. Ok. One of the things you can do is give yourself a dev-only backdoor to get around the auth
  • s

    stocky-dream-36427

    05/20/2021, 2:00 AM
    If you're testing something local
  • u

    user

    05/20/2021, 2:03 AM
    Cool. That’s definitely something that we will consider and look into.
  • f

    future-journalist-95278

    05/20/2021, 3:11 AM
    Hey all. I am trying to build a login command within my NuxtJS application using the Nuxt Auth module. The command looks like:
    Copy code
    js
    Cypress.Commands.add('login', () => {
      const data = JSON.stringify({
        username: Cypress.env('TEST_USERNAME'),
        password: Cypress.env('TEST_USER_PASSWORD'),
      })
      cy.window().then((window) => {
        window.nuxtApp.$auth.loginWith('login', data)
      })
    })
    What I don't understand is this is giving me a
    Xhr
    request with
    canceled: true
    . I read that
    canceled: true
    occurs because I am attempting a URL change after calling my login command like:
    Copy code
    js
    cy.login()
    cy.visit('http://localhost:3000/settings/info')
    Should I be waiting for the login command to finish? I tried adding an alias like:
    Copy code
    js
    cy.login().as('login')
    cy.wait('@login')
    but Cypress didn't seem to like that...
  • s

    stocky-dream-36427

    05/20/2021, 7:39 AM
    @User can you post in #763105090679865354 (or somewhere not in general, like e2e)
  • w

    wooden-advantage-64510

    05/20/2021, 1:02 PM
    Just an FYI: a lot of docs are currently giving 404's
1...678...127Latest