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

    fresh-doctor-14925

    07/04/2022, 11:07 AM
    Out of interest, why is screenshot resolution important to you?
  • b

    bitter-match-90736

    07/04/2022, 11:07 AM
    mh
  • b

    bitter-match-90736

    07/04/2022, 11:09 AM
    dialog is not comlete in
  • f

    fresh-doctor-14925

    07/04/2022, 11:11 AM
    Oh! Well you should be able to get a decent view of the action by setting
    cy.viewport()
    to your recommended resolution Screenshot will still be 720p, but the viewport will show all your app (as well as the Cypress sidebar-- that's what the screenshot options are for)
  • f

    fresh-doctor-14925

    07/04/2022, 11:11 AM
    You can do that in your config json/js or in the test itself
  • b

    bitter-match-90736

    07/04/2022, 11:12 AM
    720p we wont support, this resolution is for phones
  • b

    bitter-match-90736

    07/04/2022, 11:13 AM
    is there a possibility to force 180p?
  • b

    bitter-match-90736

    07/04/2022, 11:13 AM
    1080
  • f

    fresh-doctor-14925

    07/04/2022, 11:15 AM
    I think there is a misunderstanding. The screenshot, (ie the size of the file you will see after the test run) will always be 720p However, the viewport within this virtual screen can be any size you want. You'll just see it scaled down as per the aspect ratio you've set Try
    cy.viewport(1920, 1080)
    . Then you should be able to see everything
  • b

    bitter-match-90736

    07/04/2022, 11:18 AM
    mhh
  • b

    bitter-match-90736

    07/04/2022, 11:18 AM
    same result
    f
    g
    • 3
    • 12
  • b

    bumpy-library-92619

    07/04/2022, 11:20 AM
    Hi everyone, can you please tell me how is it possible that the tests run as requested with workflow from the branch (first ss) but do not work if i want to merge to the main (second ss)
  • b

    bitter-match-90736

    07/04/2022, 11:52 AM
    im not a pro, but for me looks like no cypress issue.
  • g

    gentle-accountant-4760

    07/04/2022, 11:59 AM
    Anyone? ❤️
  • c

    cold-doctor-52849

    07/04/2022, 12:04 PM
    has anyone else had issues with https://github.com/javierbrea/cypress-localstorage-commands not working properly in different environments? it works flawlessly in my staging env, but in my prod i get null for my localstorage values.. my staging env has one subdomain while my prod has multiple, so i'm not sure if that's the issue..
    • 1
    • 1
  • b

    bumpy-library-92619

    07/04/2022, 12:52 PM
    me too and im totally new in cypress thats why dont know how to solve it and where the issue is
  • a

    ambitious-photographer-77013

    07/04/2022, 1:23 PM
    Hey all. Did anyone get component testing to work with a Webpack config from Craco?
    Copy code
    ts
    export const webpackConfig = createWebpackDevConfig(cracoConfig);
    Craco gives you API for extracting the overridden Webpack config, but Cypress throws with the following:
    Copy code
    ts
    Error: Cannot find module '/Users/adisahar/dev/deepdubapp8/cypress/package.json'
    Require stack:
    - /Users/xxx/dev/deepdubapp8/node_modules/react-scripts/config/paths.js
    - /Users/xxx/dev/deepdubapp8/node_modules/react-scripts/config/env.js
    - /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/lib/cra.js
    - /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/lib/features/jest/api.js
    - /Users/xxx/dev/deepdubapp8/node_modules/@craco/craco/index.js
    - /Users/xxx/dev/deepdubapp8/craco.config.ts
    - /Users/xxx/dev/deepdubapp8/cypress/cypress.config.ts
    ...
  • c

    cold-doctor-52849

    07/04/2022, 1:29 PM
    Cypress localstorage on multiple domains
  • f

    fierce-beach-68131

    07/04/2022, 2:11 PM
    Hi, I am trying to automate calendar and thanks to "dayjs" plugin, I can easily get start date but when I'm trying to get the end date by making it dynamic, I can't get the zero. Here is my code and cypress error. What should I do?
  • b

    bitter-fountain-36713

    07/04/2022, 2:18 PM
    @fierce-beach-68131 are you using the proper formatting with dayjs (ie
    dayjs('1970-00-00', 'MM-DD-YYYY')
  • f

    fierce-beach-68131

    07/04/2022, 2:19 PM
    @bitter-fountain-36713 No, for me DD-MM-YYYY
  • p

    proud-breakfast-29892

    07/04/2022, 4:05 PM
    Hello. I have a run build of Cypress test in TeamCity, and when I try to run a single spec file, it always stops on the same
    it
    . It ignores it and the build stops. I checked the log, and the only relevant message I could find is
    Test ignored: ignore reason: Interrupted by TeamCity on build stop .
    Did anyone encounter such an issue? The only viable information I think I can give regarding my spec file, is that it has multiple
    context
    ,with a
    beforeEach
    to each of those contexts, plus a global
    beforeEach
    outside those contexts in the beginning of the spec file.
  • m

    miniature-father-81446

    07/04/2022, 6:19 PM
    Hello, everyone! Could someone point me in the right direction? I'm trying to serve/deploy the interactive app of cypress for non-techy people o**n a port of a EC2 Amazon Linux 2** machine. I've already tried doing it installing cypress locally and running docker images - install Mate Desktoop on the server - install Xvfb - Install TigerVNC - sending my X11 folder as a volume - sending my dbus_socket as a volume - exporting DISPLAY env Nothing succesfully, I've been following the issues for the dbus no adress error, the binary missing error, Unable to open X display, etc. What docker image would be the one I should use? Anyone has done it? Is it possible? Thanks in advance, fellow cypressors
    • 1
    • 1
  • s

    swift-kitchen-62493

    07/05/2022, 6:04 AM
    HI, is there somethink like, after click check if text is no longer visible? if "yes" click again...
  • q

    quaint-autumn-18886

    07/05/2022, 6:16 AM
    Hi all, i need help, i'm using Cypress js And NX monorepo, suddenly vsCode started to give me this error on cypress custom commands, the code runs without errors but vsCode displays error:
  • b

    billowy-hairdresser-82846

    07/05/2022, 7:37 AM
    I need help My page object structure is like below const MENU_BUTTON = '.mat-icon[_ngcontent-nci-c6]'; class TopNavigationBar { get menuButton() { return cy.get(MENU_BUTTON); } } export default TopNavigationBar I added a custom command to check that any element's text // Code in command.js Cypress.Commands.add('shouldContain', (selector, text) => { selector.should('contain', text); }) and I tried to use this command but its not working I tried to use the custom command like below export function displayUserProfileMenu () { cy.shouldContain(topNavigationBar.menuButton, 'automationbetelgeuseqa') }; can anyone please provide the solution?
  • h

    handsome-telephone-90688

    07/05/2022, 8:40 AM
    hii team i need a help.. i want to generate a random date in cypress
  • q

    quaint-autumn-18886

    07/05/2022, 9:04 AM
    Fixed - it was Cypress Helper Extention settings path issue
  • g

    gentle-accountant-4760

    07/05/2022, 10:29 AM
    What is the best way to check if a string is in a json array?
  • g

    gray-kilobyte-89541

    07/05/2022, 11:21 AM
    this is conditional testing and an anti-pattern. But if really needed, use cypress-recurse
1...102103104...252Latest