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

    important-lawyer-45208

    10/14/2022, 1:51 PM
    I managed to make it work by using the experimental feature cy.origin, but now the issue is that the page load event does not fire even though the page is loaded found this issue here https://github.com/cypress-io/cypress/issues/22459 but there is no workarounds yet in the issue, any ideas on how to overcome this ?
  • a

    ancient-park-71356

    10/14/2022, 1:53 PM
    Sorry, where have you add "--disable-web-security" param? Cause it can resolve my problem
  • f

    fierce-engineer-40904

    10/14/2022, 1:53 PM
    Hello, is there a way to check network request (look at headers) while looking at cypress.dashboard?
  • i

    important-lawyer-45208

    10/14/2022, 1:57 PM
    cypress config
    Copy code
    setupNodeEvents(on, config) {
        on('before:browser:launch', (browser, launchOptions) => {
          
          launchOptions.args.push('--disable-site-isolation-trials');
          launchOptions.args.push('--disable-web-security');
          return launchOptions;
        });
  • a

    ancient-park-71356

    10/14/2022, 2:03 PM
    Thanks!
  • a

    ancient-park-71356

    10/14/2022, 2:10 PM
    I think it also didn't work for me 😥
  • h

    happy-megabyte-98400

    10/14/2022, 2:10 PM
    Hello, our project has several subfolders within the e2e folder and multiple files within those subfolders. Each file has beforeEach hook that logs in and navigates to that module, resulting in a lot of code duplication. Is it possible to add a beforeEach hook on a folder level?
  • m

    most-magazine-56150

    10/14/2022, 2:11 PM
    Hi All, first time in here but I got a lot out of attending your previous webinar on all the cool new Cypress Features. I have a question where there is a way to have all the test runner logs collapsed by default. I searched online but could not find an answer.
  • p

    powerful-king-7492

    10/14/2022, 2:39 PM
    good morning guys I need to capture an id from a modal and add it to a file but I'm missing something when trying to save more than two executions I read about the subject and cypress indicates that I should use the readme first and then rewrite but I don't know why it doesn't work for me in reading this is my code const filepath = "cypress/fixtures/id.txt" const id = ""; cy.get('.alert > .ng-binding').then(($elements) => { const id = $elements.text() cy.log(id) // cy.writeFile(filepath,id) }) cy.readFile(filepath).then((list) => { list.push(id) cy.writeFile(filepath, list) }) Could someone tell me what my mistake is and tell me what is the correct way
  • k

    kind-artist-92362

    10/14/2022, 3:16 PM
    how can i check that opened page has form ?
  • k

    kind-artist-92362

    10/14/2022, 3:17 PM
    maybe with the appropriate class
  • f

    future-terabyte-35712

    10/14/2022, 3:37 PM
    Hey I'm working on a PR to add CDP support and wondering if anyone has any tips on how to build a version to test locally? I think I need to run
    yarn binary-build
    and then copy that to the right place but that command doesn't seem to be working
  • f

    future-terabyte-35712

    10/14/2022, 3:46 PM
    think the problem is related to code signing. Tried
    CSC_IDENTITY_AUTO_DISCOVERY=false yarn binary-build
    and that also fails 😢
  • g

    gray-kilobyte-89541

    10/14/2022, 3:51 PM
    CDP support as in? https://github.com/bahmutov/cypress-cdp
  • f

    future-terabyte-35712

    10/14/2022, 3:53 PM
    not quite. I want to be able start cypress and have it connect to an already running chrome instance (in docker) https://github.com/cypress-io/cypress/pull/24261 is my wip PR. At a point where I wanted to check locally everything still works
  • f

    future-terabyte-35712

    10/14/2022, 3:54 PM
    current idea is to support the browser
    path
    being something like
    cdp:http://localhost:1234
    but open to other approaches
  • f

    future-terabyte-35712

    10/14/2022, 3:55 PM
    so then you'd use a plugin to modify the available browsers array to add a cdp version
  • p

    powerful-king-7492

    10/14/2022, 3:59 PM
    good morning guys I need to capture an id from a modal and add it to a file but I'm missing something when trying to save more than two executions I read about the subject and cypress indicates that I should use the readme first and then rewrite but I don't know why it doesn't work for me in reading this is my code const filepath = "cypress/fixtures/id.txt" const id = ""; cy.get('.alert > .ng-binding').then(($elements) => { const id = $elements.text() cy.log(id) // cy.writeFile(filepath,id) }) cy.readFile(filepath).then((list) => { list.push(id) cy.writeFile(filepath, list) }) Could someone tell me what my mistake is and tell me what is the correct way
  • f

    future-terabyte-35712

    10/14/2022, 4:00 PM
    ok I found a
    skipSigning
    option and now it builds 🎉
  • n

    narrow-artist-87113

    10/14/2022, 4:58 PM
    I am not able to understand concept behind cy.session() can anyone suggest some trusted source?
  • g

    gray-kilobyte-89541

    10/14/2022, 6:38 PM
    what about the browser CLI switches? Cypress needs to launch the browser with lots of CLI flags, otherwise it cannot really control oit
  • f

    fresh-doctor-14925

    10/14/2022, 6:59 PM
    https://docs.cypress.io/api/commands/session Cypress docs are the most trustworthy source
  • f

    future-terabyte-35712

    10/14/2022, 7:06 PM
    I think it’s still fine to manually create with the necessary switches? They could be documented or maybe even we could add a command to the cli that would return the set of switches that are required so that if you are creating the instance yourself you could use those?
  • f

    future-terabyte-35712

    10/14/2022, 7:43 PM
    Do you know if the extension is required? Looks like it’s not added when headless?
  • i

    important-lawyer-45208

    10/14/2022, 8:13 PM
    A slight bump for this in the hopes that some one has an answer
  • c

    cool-australia-22894

    10/14/2022, 9:41 PM
    So we just started using Cypress to test our web app, and for the most part its been a great experience, but getting enough data when a test fails in CI is really hard. Is there any way to capture the same logs that I get in the "interface" when running with
    open
    locally? like all the output from commands etc? and not just in the video, because trying to scroll that to the right moment to notice what URL wasn't waited on properly etc is really hard..
  • f

    future-terabyte-35712

    10/14/2022, 10:12 PM
    If there’s some docs on when the extension is used and what it does that would be great. Am I right I’m thinking when running ‘open’ the extension handles commands from the server but when running ‘open’ the extension isn’t used and the commands are handled with cdp instead?
  • a

    astonishing-hair-38236

    10/15/2022, 8:11 AM
    Hello, anyone can help me? I want to create chat bot test using cypress, when I open it on chrome it working well, after click chat icon it will show the chat menu. But, when I open it on cypress, it cannot open the chat menu, the element is on there, but not like rendered? I try to assert it with should visible and it passed, but there is an cross eye icon said if the element is not visible, I can do any action like click, etc but yeah it not visible, btw the chat bot using iframe, I was able to handle the iframe but still same, the element is still not visible
  • a

    astonishing-hair-38236

    10/15/2022, 8:11 AM
    And it working well on Playwright, but cypress can't
  • c

    cool-australia-22894

    10/15/2022, 8:44 AM
    Hello anyone can help me
1...175176177...252Latest