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

    stale-wire-41120

    06/30/2022, 7:55 PM
    Please tell me how to solve this for code coverage
  • s

    stale-wire-41120

    06/30/2022, 8:41 PM
    Is there anyone
  • s

    swift-angle-95455

    06/30/2022, 8:46 PM
    I would like to help you but I am a newbie in testing and code coverage is a thing I have not seen yet.
  • s

    stale-wire-41120

    07/01/2022, 5:08 AM
    it means you know
  • a

    acoustic-jewelry-82423

    07/01/2022, 6:33 AM
    Hello. I am a beginner with cypress and I have a problem with my code. I create a small test that login into the web page. Below is my code.. I am using cypress 10.3.0 version. /** * Use Case: Login to IOM web workplace * */ describe("login", function () { it("Initial Login", function () { cy.visit('') cy.wait(3000) cy.once('uncaught:exception', () => false) cy.get('#singInButton').click() cy.get('#userNameInput').type('administrator@iomind.abb.com') cy.get('#passwordInput').type('welcome123#') cy.get('#submitButton').click() cy.wait(10000) cy.get('div.hmi__header__drawer-menu').click() }); });
  • a

    acoustic-jewelry-82423

    07/01/2022, 6:34 AM
    Can anyone help me to resolve my issus?
  • r

    rhythmic-lamp-20079

    07/01/2022, 6:43 AM
    https://github.com/cypress-io/cypress/issues/3830
  • r

    rhythmic-lamp-20079

    07/01/2022, 6:44 AM
    Maybe it can help you 😀
  • a

    acoustic-jewelry-82423

    07/01/2022, 7:06 AM
    I tried this. But in 10.3 version it's not working
  • s

    stale-wire-41120

    07/01/2022, 7:32 AM
    Photo from S@u
  • s

    stale-wire-41120

    07/01/2022, 7:33 AM
    describe('BULK FILE', function () { it('login', function () { cy.Login() cy.wait(5000) }) it('Registration Bulk File Testing', function () { const fileName = 'cypress/fixtures/bulkimei.csv' cy.fixture(fileName).then(fileContent => { cy.log(fileName) cy.log(fileContent) cy.get('button[type="button"]').get('input[type="file"]').selectFile(fileName) cy.get('button[type="button"]').get('input[type="file"]').selectFile({fileCont
  • s

    stale-wire-41120

    07/01/2022, 7:34 AM
    Please help me in this .i am giving the right path but showing this error
  • f

    fresh-doctor-14925

    07/01/2022, 7:36 AM
    You don't need to provide the path to the fixtures folder, just the filename. You can see the issue in the error message So
    const fileName = 'bulkimei.csv'
    s
    • 2
    • 5
  • h

    helpful-microphone-22896

    07/01/2022, 12:39 PM
    I have a script as can be seen in the screenshot. When i do the check on label 'Visites' in the same testcase as where the item ..mat-ripple-animation will be clicked it goes fine. The label is check and Ok and the item is clicked. But when i perform the label check in a separate testcase, before the testcase to click the item, then a different page is shown and it seems that the item is nog clicked. So, why could there be a difference in the execution when same actions are in separate testcases?
  • p

    purple-kilobyte-85592

    07/01/2022, 1:49 PM
    Is there any way to block SearchSpring API for plp ?
  • s

    stale-wire-41120

    07/01/2022, 5:59 PM
    bulk file with selectFile
  • s

    stale-wire-41120

    07/02/2022, 9:37 AM
    I am working on reports but showing this error
  • s

    stale-wire-41120

    07/02/2022, 9:37 AM
    Can someone help me in it
  • p

    purple-kilobyte-85592

    07/02/2022, 12:21 PM
    https://dzone.com/articles/cypress-generate-html-results-with-screenshot
    s
    • 2
    • 1
  • s

    stale-wire-41120

    07/02/2022, 1:22 PM
    @fresh-doctor-14925 will you help me in this also please
  • m

    melodic-portugal-66708

    07/04/2022, 5:08 AM
    Hi I am new to cypress. I have been using protractor for angular js project and angular project ( angular 11+) Now that protractor is deprecated end of 2022, I need to migrate. Will cypress support angular js and angular 11+?
    a
    e
    • 3
    • 5
  • a

    adorable-smartphone-87280

    07/04/2022, 6:01 AM
    Angular
  • w

    wooden-teacher-96595

    07/04/2022, 7:39 AM
    hey all, is there any way to test the response time of a call or how long a component takes to load?
  • c

    careful-tent-30457

    07/04/2022, 8:30 AM
    Hi, does anyone know of a guide of how I can run Cypress 10 in docker when I have written all my tests and config in TypeScript? I'm currently running in to the error:
    Copy code
    e2e_1  | Your configFile is invalid: /cypress.config.ts
    e2e_1  | 
    e2e_1  | It threw an error when required, check the stack trace below:
    e2e_1  | 
    e2e_1  | TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /cypress.config.ts
  • g

    gentle-accountant-4760

    07/04/2022, 10:12 AM
    Hello beautiful people. Im having some small decision issue as I dont know if I should turn my function into a "pageobject", command nor task? I have a code that does a requests with some signatures to make the requests.
    Copy code
    ts
    const requestUrl = `${constants.baseUrl.api}/hello/world/User/${userID}`.trim();
    const pathToSign = Helper.getPathToSign(requestUrl);
    const timeStamp = Helper.formatDateISOBasic(new Date());
    
    const headers = [
      { name: 'override', value: 'yes' },
      { name: 'keylord', value: '12345' },
      { name: 'environment', value: 'thrill' },
      { name: 'timestamp', value: timeStamp },
    ];
    
    const headerArray = {};
    Object.entries(headers).forEach(([, header]) => { headerArray[header.name] = header.value; });
    
    const signer = new MessageSigner();
    const signature = signer.getSignature('barrythrill', pathToSign, headers, []);
    
    cy.request({
      url: requestUrl,
      method: 'GET',
      headers: {
        ...headerArray,
        'signature': signature,
      },
      failOnStatusCode: false,
      log: true,
    })
      .then((response) => {
        cy.log('resp', JSON.stringify(response));
      });
    });
    and I would like to get the response to do some except tests. I wonder where should I put such a code as? Function in pageobject, command or ...?
  • b

    bitter-match-90736

    07/04/2022, 10:21 AM
    Hello and cheers.. I need a little support from Cypress 10.2.0, we use Cypress for e2e testing and are thrilled with how it handles. Unfortunately, I fail in creating the screenshots and the resolution. I specified viewport in config.js/ts, but instead of 1080p I always get 720p. Maybe it is helpful, we went from Cypress 9.x.x to 10. I can't say if it worked with 9, because there was no requirement yet.
  • a

    adamant-midnight-76134

    07/04/2022, 10:46 AM
    Hi everyone, I've just tried to upgrade Cypress to 10.3.0. When I try and run "npx cypress open" I'm getting the following error message. I'm trying to run inside a WSL 2 machine on Windows 11.
  • f

    fresh-doctor-14925

    07/04/2022, 10:56 AM
    Hi Alexander, the virtual screen will always be 720p. There was a version (v7 I think?) where this upped to 1080p, but it was reverted as it was too resource intensive. I don't believe that there's a way for users to change this The
    viewport
    is the resolution of the browser window within the virtual screen. I have mine set to 1500x1200, but the screenshot itself is still 720p
  • b

    bitter-match-90736

    07/04/2022, 10:57 AM
    bad news for me 😦
  • b

    bitter-match-90736

    07/04/2022, 10:59 AM
    i don't see any difference between: viewport, fullPage or runner in the Screenshot options
1...101102103...252Latest