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

    gray-kilobyte-89541

    11/14/2022, 4:08 PM
    but if you copied it from the original repo, then it won't have of the specs... Plus there are changes I made to the app to make those examples. You cannot use the Ravi's repo, better use my repo. That will solve it
  • f

    few-oyster-82478

    11/14/2022, 4:35 PM
    I'm trying to use
    testing-library/cypress
    , I've setup
    commands.ts
    with the following config:
    Copy code
    // cypress/e2e/commands.ts
    import '@testing-library/cypress/add-commands';
    however I'm getting a TypeError:
    Copy code
    cy.findByRole is not a function
    cypress/e2e/up.cy.ts:9:6
       7 | 
       8 | Then('I should see the auth form', () => {
    >  9 |   cy.findByRole('button');
         |      ^
      10 | });
    any idea what I might be missing?
  • u

    user

    11/14/2022, 7:00 PM
    Hey, I am running into the issue that emotion (CSS-in-JS for React) heavily slows down the time travelling feature of Cypress when run in interactive mode. I see there were some perf improvements on style tags (see https://github.com/cypress-io/cypress/pull/4068) but can't seem to find a follow-up PR/issue. Was anyone ever able to find a workaround to make Cypress more bearable with CSS-in-JS libraries?
  • s

    stale-optician-85950

    11/14/2022, 9:05 PM
    Anybody experience this error when running Webkit in GitHub Actions?
    Copy code
    read ECONNRESET
    Error: read ECONNRESET
        at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
    It's working fine in another GH Actions sandbox repository but getting the error in our large project repo (same Node version, same Ubuntu version, except running localhost). Not much to be found when Googling!
    Copy code
    - name: Install webkit dependencies
            if: matrix.platform == 'safari'
            uses: cypress-io/github-action@v4
            with:
              build: npx playwright install-deps webkit
              runTests: false
    
    - name: Run integration tests - device = safari
            if: matrix.platform == 'safari'
            uses: cypress-io/github-action@v4
            with:
              install: false
              working-directory: packages/web/corporate
              browser: webkit
              start: yarn serve
              wait-on: 'http://localhost:3000'
              command: yarn test:cy:run:safari --spec 'cypress/e2e/components/uco-c-header.int.test.cy.ts'
  • a

    astonishing-air-69539

    11/14/2022, 9:24 PM
    can anyone help with webpack compilation error for the experimentalStudio?
  • s

    stale-furniture-7985

    11/14/2022, 9:41 PM
    Ok will try. Thanks
  • a

    adorable-smartphone-87280

    11/14/2022, 9:43 PM
    This bug was fixed in 11.0.1 - did you try updating first?
  • a

    astonishing-air-69539

    11/14/2022, 9:44 PM
    yes i've updated it. still gave me an webpack compilation error
  • a

    astonishing-air-69539

    11/14/2022, 9:44 PM
    I've used this line of codes from the doc but it still doesn't seem to take it
  • a

    astonishing-air-69539

    11/14/2022, 9:44 PM
    https://docs.cypress.io/guides/references/cypress-studio
  • a

    astonishing-air-69539

    11/14/2022, 9:45 PM
    i used the '.js' line of codes
  • a

    astonishing-air-69539

    11/14/2022, 9:46 PM
    i guess does it matter where i implement these codes? maybe i'm placing the codes in the wrong way?
  • a

    adorable-smartphone-87280

    11/14/2022, 10:15 PM
    Are they inside your
    e2e
    object? It certainly does matter where you have that line of config, but the order of members within objects doesn't matter.
  • a

    astonishing-air-69539

    11/14/2022, 10:22 PM
    yes they are inside the e2e object
  • r

    rich-rocket-31635

    11/14/2022, 11:17 PM
    Hey there, we are on a Team account. The account owner left our company, so his email address has been deactivated and I was hoping someone could help me transfer the account owner as we need to update permissions and are unable to at the moment.
  • l

    loud-monitor-58963

    11/15/2022, 2:17 AM
    Hello! So (I'm embarrassed to say) I don't get to use Cypress nearly as much as I'd like. From my Mac, I tried launching from the CLI and get nothing but blank browser window. I reinstalled the latest version of Cypress in a new directory and tried again with
    npx open cypress
    ... still, just a blank browser. It doesn't matter if I choose Chrome or Electron. I'm guessing it is something local and permission related. I walk through the same process on another machine without issue. Still no clue as to what is keeping the initial page from rendering.
  • a

    adorable-smartphone-87280

    11/15/2022, 4:12 AM
    Do you have any spec files yet? Did you set the
    baseUrl
    value?
  • m

    mysterious-belgium-25713

    11/15/2022, 8:01 AM
    I think for dashboard help you could better email cypress. Try this email: support@cypress.io
  • f

    faint-thailand-67863

    11/15/2022, 8:17 AM
    Hey there! Last Friday I asked about why I was not able to modify experimentalSessionAndOrigin value to true... Recently I'd been reading that I cannot modify it in a component environment, am I wrong?
  • f

    fresh-doctor-14925

    11/15/2022, 9:13 AM
    Yeah. I believe it's on by default in component testing
  • f

    few-oyster-82478

    11/15/2022, 9:21 AM
    Copy code
    GET /__cypress/tests?p=cypress%5Ce2e%5Cup.feature 200 249813.504 ms - -
    GET /__cypress/tests?p=cypress%5Csupport%5Ce2e.ts 200 278177.992 ms - -
  • f

    few-oyster-82478

    11/15/2022, 9:22 AM
    any idea what these calls are used for or how to disable them?, they take a very long time and it's only a very simple test
  • f

    few-oyster-82478

    11/15/2022, 9:23 AM
    4 min the first one and almost 5 min the second one
  • f

    few-oyster-82478

    11/15/2022, 9:24 AM
    the test:
    Copy code
    import { Then, When } from '@badeball/cypress-cucumber-preprocessor';
    
    When('I visit the frontpage', () => {
      const url = String(Cypress.config().baseUrl);
      cy.visit(url);
    });
  • f

    few-oyster-82478

    11/15/2022, 9:25 AM
    I'm using Cypress
    11.0.1
  • m

    millions-scientist-9990

    11/15/2022, 10:30 AM
    whats that with cypress.config.json and cypress.json I installed a Newer docker file and now it wants to OLD config. can you guys make up your mind
  • m

    millions-scientist-9990

    11/15/2022, 11:04 AM
    right documentation of what docker is the latest is far behind
  • f

    future-eye-56254

    11/15/2022, 11:38 AM
    Hello I am trying to use the below code to let a Kafka consumer to consume messages from a topic and and then return the message(s) Then I am trying to call the consumer function from within my Cypress test and trying to log the message(s). The test runs and passes but there is no output (messages) to the console. What is going wring here ?
  • f

    future-eye-56254

    11/15/2022, 11:38 AM
    //Kafka Consumer const { Kafka, logLevel } = require('kafkajs'); const kafka = new Kafka({ logLevel: logLevel.DEBUG, brokers: ['broker1: port1', 'broker2: port2', 'broker3: port3'], //hidden here clientId: 'my-consumer', ssl: true, sasl: { mechanism: mech, //read from env username: username, password: password, }); const topic = 'Topic Name'; const consumer = kafka.consumer({ groupId: 'my-group-new' }); //let messages = []; //declare array if all messages need to be pushed into the array to be read later const run = async () => { await consumer.connect(); await consumer.subscribe({ topic, fromBeginning: true //to be changed to false later to read only latest }); await consumer.run({ eachMessage: async ({ topic, partition, message }) => { //messages.push(message.value.tostring()) //push to array if all messages are needed console.log({ topic, partition, offset: message.offset, value: message.value.toString() }); return message.value.tostring(); //returns the individual message // or return messages array } }) }
  • f

    future-eye-56254

    11/15/2022, 11:38 AM
    //Cypress Test it('Call Kafka Consumer & log the received message', () => { run().then(function (response) { //then awaits the previous command to finish & performs commands in the next block cy.log('Received', response) }) })
1...204205206...252Latest