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

    important-bird-21355

    05/18/2022, 7:27 PM
    the problem is that Cypress is looking for a
    package-lock.json
    file in the root folder
    Copy code
    Run cypress-io/github-action@v2
    16
    /usr/bin/docker exec  b3d7e6c302caf9aa33aaecf1ef88e5dae194e0a7758f8ef63d055be204f8eb72 sh -c "cat /etc/*release | grep ^ID"
    17
    internal/fs/utils.js:269
    18
        throw err;
    19
        ^
    20
    
    21
    Error: ENOENT: no such file or directory, open '/__w/mimisbrunnr/mimisbrunnr/package-lock.json'
  • i

    important-bird-21355

    05/18/2022, 7:40 PM
    It seems that
    working-directory
    is what I was looking for
  • i

    important-bird-21355

    05/18/2022, 9:18 PM
    And 3 hours later, I'm still fighting another problem. This time Cypress can't reach the server.
    Copy code
    - name: Run acceptance tests with Cypress πŸ“
            uses: cypress-io/github-action@v2
            with:
              working-directory: e2e
              browser: chrome
              record: true
              parallel: true
              config: pageLoadTimeout=100000,baseUrl=http://localhost:1080
              start: npm run app_server
              wait-on: 'http://localhost:1080'
              wait-on-timeout: 120
            env:
              CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
              MIX_ENV: acceptance_tests
              DEBUG: '@cypress/github-action'
    you can see that
    baseUrl
    and
    wait-on
    pointing to the same url. Now, I can see that main app successfully responses to at least one request:
  • i

    important-bird-21355

    05/18/2022, 9:18 PM
    Copy code
    Warning: 2022-05-18T21:04:34.089Z @cypress/github-action Separated 1 start commands npm run app_server
    start server "npm run app_server command "npm run app_server"
    current working directory "/__w/mimisbrunnr/mimisbrunnr/e2e"
    2022-05-18T21:04:34.090Z @cypress/github-action parsed command: npm run app_server
    waiting on "http://localhost:1080" with timeout of 60 seconds
    Warning: 2022-05-18T21:04:34.091Z @cypress/github-action Waiting for urls http://localhost:1080
    2022-05-18T21:04:34.092Z @cypress/github-action Waiting for url http://localhost:1080
    Warning: 2022-05-18T21:04:34.092Z @cypress/github-action total ping timeout 90000
    2022-05-18T21:04:34.092Z @cypress/github-action individual ping timeout 30000ms
    Warning: 2022-05-18T21:04:34.092Z @cypress/github-action retries limit 3
    2022-05-18T21:04:34.107Z @cypress/github-action got error {"name":"RequestError","code":"ECONNREFUSED","timings":{"start":1652907874098,"socket":1652907874099,"lookup":1652907874100,"error":1652907874101,"phases":{"wait":1,"dns":1,"total":3}}}
    Warning: 2022-05-18T21:04:34.107Z @cypress/github-action 15ms undefined undefined ECONNREFUSED attempt 1
    2022-05-18T21:04:34.108Z @cypress/github-action found command "/usr/local/bin/npm"
    Warning: 2022-05-18T21:04:34.108Z @cypress/github-action with arguments run app_server
    2022-05-18T21:04:34.108Z @cypress/github-action running "/usr/local/bin/npm" run app_server in /__w/mimisbrunnr/mimisbrunnr/e2e
    Warning: 2022-05-18T21:04:34.108Z @cypress/github-action waiting for the command to finish? false
    /usr/local/bin/npm run app_server
    
    > gjallarhorn@1.0.0 app_server
    > cd ../main && mix phx.server
  • i

    important-bird-21355

    05/18/2022, 9:19 PM
    here comes the part from the main app ->
    Copy code
    warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
    2022-05-18T21:04:35.109Z @cypress/github-action got error {"name":"RequestError","code":"ECONNREFUSED","timings":{"start":1652907875108,"socket":1652907875108,"lookup":1652907875108,"error":1652907875109,"phases":{"wait":0,"dns":0,"total":1}}}
    Warning: 2022-05-18T21:04:35.109Z @cypress/github-action 1017ms undefined undefined ECONNREFUSED attempt 2
    21:04:35.419 [info] Running MimisbrunnrWeb.Endpoint with cowboy 2.9.0 at 127.0.0.1:1080 (http)
    21:04:35.428 [info] Access MimisbrunnrWeb.Endpoint at http://localhost:1080
    [+] Starting static assets build with esbuild. Build mode development...
    [+] Starting static assets build with esbuild. Build mode development...
    21:04:36.251 request_id=FvBO9LpFQLx0rPYAAAFx [info] GET /
    21:04:36.339 request_id=FvBO9LpFQLx0rPYAAAFx [info] Sent 200 in 87ms
    2022-05-18T21:04:36.348Z @cypress/github-action pinging http://localhost:1080 has finished ok after 2256ms
  • i

    important-bird-21355

    05/18/2022, 9:19 PM
    but even though cypress successfully pinged main app the party is still over
    Copy code
    Warning: 2022-05-18T21:04:36.349Z @cypress/github-action Running Cypress tests using NPM module API
    2022-05-18T21:04:36.349Z @cypress/github-action requiring cypress dependency, cwd is /__w/mimisbrunnr/mimisbrunnr
    Warning: 2022-05-18T21:04:36.349Z @cypress/github-action working directory /__w/mimisbrunnr/mimisbrunnr/e2e
    2022-05-18T21:04:36.351Z @cypress/github-action resolved cypress /__w/mimisbrunnr/mimisbrunnr/e2e/node_modules/cypress/index.js
    Warning: 2022-05-18T21:04:36.721Z @cypress/github-action Cypress config "pageLoadTimeout=100000,baseUrl=http://localhost:1080"
    2022-05-18T21:04:36.722Z @cypress/github-action Determining build id by asking GitHub about run 2348169225
    Warning: 2022-05-18T21:04:36.841Z @cypress/github-action Resource not accessible by integration
    2022-05-18T21:04:36.841Z @cypress/github-action HttpError: Resource not accessible by integration
    Warning:     at /__w/_actions/cypress-io/github-action/v2/dist/index.js:58740:21
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    Warning:     at async getCiBuildId (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6230:18)
        at async runTests (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6468:33)
    Error: Resource not accessible by integration
    What exactly resource is not accessible by the integration?
  • i

    important-bird-21355

    05/18/2022, 9:45 PM
    And surprise, it all worked just fine with a cli command:
    Copy code
    - name: Run acceptance tests with Cypress
            run: npm run ci
            working-directory: e2e
            env:
              CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
              MIX_ENV: acceptance_tests
              START_SERVER_AND_TEST_INSECURE: 1
              DEBUG: start-server-and-test
  • a

    acceptable-stone-76122

    05/19/2022, 4:02 AM
    @here Hello everyone . Has anyone observed the performance of running the test on electron vs other browsers(chrome..) The other browsers running spec time is way faster than electron.
  • f

    fresh-doctor-14925

    05/19/2022, 9:02 AM
    We ran some numbers to work out optimal CPU/memory allocation for various configs (Chrome/Electron, video/no video). We found that Electron needed about half of the resources that Chrome did. Are you measuring the run times via
    cypress open
    or
    cypress run
    ?
  • f

    fresh-doctor-14925

    05/19/2022, 9:04 AM
    Also, no need to do an
    @here
    on these channels. It's noisy and people are usually willing to help without such nudges πŸ™‚
  • a

    acceptable-stone-76122

    05/19/2022, 10:13 AM
    Measuring through Cypress run on the AWS EC2 instances
  • f

    fresh-doctor-14925

    05/19/2022, 10:24 AM
    Ok, can't say I've noticed a huge difference. That said, I know the Cypress team is interested in hearing about performance metrics. If you have relevant info to share (ie EC2 instance you're using, browsers, run times), I'm sure they would appreciate it
  • a

    acceptable-stone-76122

    05/19/2022, 10:26 AM
    Sure will do
  • a

    adventurous-dream-20049

    05/19/2022, 2:28 PM
    @acceptable-stone-76122 Liam is correct! Can you send an email to support@cypress.io and ask for me (Shawn Harris)? I'd love to get a little more more information as part of a larger initiative for performance.
  • p

    powerful-translator-20726

    05/20/2022, 3:58 PM
    hello guys i try to setup cypress coverage with my vite vue3 app. the code instrumenting dosnt seem to work with cypress. i use this vite istanbul plugin https://www.npmjs.com/package/vite-plugin-istanbul has someone an example with vite, vue and cypress coverage report?
  • p

    powerful-translator-20726

    05/20/2022, 6:42 PM
    okey got it working in an example repo myself: https://github.com/Wenish/vite-vue-cypress-coverage maybe you want to add this to the coverage examples since vite is missing
  • k

    kind-minister-59159

    05/23/2022, 7:58 PM
    I haven't written API tests, so I'm still learning. I'm starting to write them with cypress, and I wondered if there were examples of using cypress against a local database with vscode.
  • g

    gorgeous-bird-50464

    05/24/2022, 1:44 AM
    Is anyone having issues with API keys today? Mine started failing this morning. I created a new one, and that is failing too. I haven't change the key, or any settings since 2021, so this is very random.
  • g

    gorgeous-bird-50464

    05/24/2022, 1:45 AM
    I get the error
    Your Record Key ... is not valid with this projectId: ...
  • g

    gorgeous-bird-50464

    05/24/2022, 1:47 AM
    ah nevermind, I can see someone has changed out github action πŸ˜…
  • t

    tall-carpenter-24673

    05/24/2022, 1:53 PM
    Hi #763114122065739818 #755913900024791046 I want to test firebase push notification in cypress but couldn't get it working . Can anyone help me in it thanks
  • p

    purple-appointment-88654

    05/24/2022, 2:44 PM
    Hi #763114122065739818 Is there a way to automate google sso login without doing http request..?
  • g

    gray-easter-54566

    05/24/2022, 7:22 PM
    Hey @purple-appointment-88654 . Currently there is not. The
    experimentalSessionAndOrigin
    config option aims to solve this with`cy.origin` , but it currently does not work due to frame busting issues within google's javascript. The team has planned to look into the issue and is planning to have this supported in the future.
  • b

    bitter-apple-86316

    05/25/2022, 9:01 AM
    Is anyone available for call
  • b

    bitter-apple-86316

    05/25/2022, 9:01 AM
    For 5mins
  • n

    numerous-kangaroo-93739

    05/25/2022, 3:19 PM
    Good afternoon, Quick question for the Core team. Keep getting emails from a Mr. Reynolds stating they are from Cypress.IO just want to make sure they are legit
  • l

    lemon-oyster-64925

    05/25/2022, 4:24 PM
    David Reynolds is one of the market development representatives at Cypress. He is wonderful and can be a fantastic resource for you! πŸ˜„
  • b

    best-honey-68720

    05/25/2022, 4:34 PM
    what’s in cypress 10?
  • p

    prehistoric-restaurant-72560

    05/26/2022, 9:23 AM
    I'm really sad that https://github.com/cypress-io/cypress-realworld-app has no POM implemented 😦 I was in search for some cypress+typescript+page objects
  • f

    fresh-doctor-14925

    05/26/2022, 10:00 AM
    Cypress devs and docs have tended to advise against POM in favour of test ids on the elements
1...424344...127Latest