https://cypress.io logo
Join DiscordCommunities
Powered by
# e2e-testing
  • c

    cool-application-67821

    06/04/2021, 5:41 PM
    @User any help appreciated
  • b

    bulky-sundown-74498

    06/04/2021, 5:43 PM
    To rephrase what you are asking: You have both e2e and ct installed but on only ct seems to be running coverage because e2e does not seem to be intrumented. Is that kindof correct
  • b

    bulky-sundown-74498

    06/04/2021, 5:44 PM
    ?
  • c

    cool-application-67821

    06/04/2021, 5:47 PM
    nt really, under cypress run i have e2e testing using visit() and unit testing of utilities(functions) using import under cypress run-ct I have component testing again using import
  • c

    cool-application-67821

    06/04/2021, 5:48 PM
    except for e2e testing using visit() everythign else is geetting coverage generated, for e2e testing using visit() while testing work, the coverage does not take place and ends up with this error Could not find any coverage information in your application by looking at the window coverage object. Did you forget to instrument your application? See code-coverage#instrument-your-application [@cypress/code-coverage]
  • b

    bulky-sundown-74498

    06/04/2021, 5:49 PM
    Oh so if in e2e, you use cy.visit() the window.coverage is lost
  • c

    cool-application-67821

    06/04/2021, 5:49 PM
    yes sir
  • b

    bulky-sundown-74498

    06/04/2021, 5:50 PM
    It should be rather easy to reproduce
  • c

    cool-application-67821

    06/04/2021, 5:51 PM
    i tot since the rest have an import may be istanbul is able to connect the files to instrument and for e2e using visit() there is no import so istanbul is not able to instrument it, so I added all:true and include: "src/**/*.js" in .nycrc, but no use there
  • c

    cool-application-67821

    06/04/2021, 5:51 PM
    yeah I am able to consistently reproduce
  • b

    bulky-sundown-74498

    06/04/2021, 5:51 PM
    If you don't mind can you create a repo with your react setup
  • c

    cool-application-67821

    06/04/2021, 5:52 PM
    would it be ok if i screenshare?
  • c

    cool-application-67821

    06/04/2021, 5:52 PM
    creating repo with that setup would not be possible, my apologies
  • b

    bulky-sundown-74498

    06/04/2021, 5:53 PM
    Yeah sure
  • c

    cool-application-67821

    06/04/2021, 5:53 PM
    do u ve teams?
  • c

    cool-application-67821

    06/04/2021, 6:29 PM
    @cypress/instrument-cra Thanks so much ElevateBart, this solved it. P.S. as a reminder: Would be good to add it to the docmentation at: https://docs.cypress.io/guides/tooling/code-coverage#Using-code-transpilation-pipeline
  • m

    miniature-portugal-41145

    06/05/2021, 4:18 PM
    Hi there, anyone have a non-too-hacky way to login in an app using
    auth0-react
    which would be up-to-date with recent cypress versions ? Everything I found on that subject seems VERY hacky and unstable, if anyone have good resources on that subject.
  • m

    miniature-portugal-41145

    06/05/2021, 4:19 PM
    PS: I cannot adapt the app for testing and IMO, you never want to "adapt" and app for testing. Especially for e2e testing.
  • s

    straight-accountant-22127

    06/07/2021, 12:23 PM
    Hello folks, i am running vuejs project and integrating cypress into it. CI/CD is hosted on AzureDevops. So the goal is to add e2e testing into CI/CD pipeline and don't deploy project to PROD if e2e fails. Any article you could point me to to build this integration? There are quite few google gives me back but i see them as incomplete or overwhelming.
  • g

    gray-kilobyte-89541

    06/07/2021, 2:19 PM
    our example repo https://github.com/cypress-io/cypress-example-kitchensink has Azure CI setup
  • u

    user

    06/07/2021, 10:51 PM
    Hey everyone. Has anyone had any experience with getting cypress to interact with the Froala WYSIWYG editor? The problem that I am having is that the text rendered when going through dev tools is not an input, it comes out as html thats contenteditable
  • b

    bulky-sundown-74498

    06/07/2021, 11:45 PM
    @User if you set up a repo where Froala is working, we can use create-cypress-tests to scaffold tests and see what we can do
  • b

    bulky-sundown-74498

    06/07/2021, 11:45 PM
    In short could you please setup a mini example with Froala?
  • u

    user

    06/08/2021, 1:53 AM
    Thanks @User would it be possible to write the test using the example editor on froalas editor page? https://froala.com/wysiwyg-editor/ or in a JS fiddle? https://jsfiddle.net/froala/oj0La98g/
  • b

    bulky-sundown-74498

    06/08/2021, 2:31 PM
    @User let me see if their site accepts being in an iframe (google hates it)
  • u

    user

    06/08/2021, 11:11 PM
    @User I actually found a hacky way to do it and will write up a post to be able to share with everyone. It may not be the prettiest but its working....
  • b

    bulky-sundown-74498

    06/08/2021, 11:32 PM
    I love that
  • u

    user

    06/09/2021, 5:09 AM
    Ok so for testing Froala in Cypress we don't actually need to test the interactions inside of Froala we just need to have Froala interacted with as part of our testing workflow. So the way we managed that is by adding this text area and button that is hidden waaaaayyyyy off in the hills of somewhere else.
  • u

    user

    06/09/2021, 5:17 AM
    Then in
    suport/commands.js
    we are have this so that we can just import and pass through a string to show up in the editor.
    froalaInteraction('This will go into Froala)
  • u

    user

    06/09/2021, 8:54 AM
    How do I store text of this tag for later use text
1...8910...192Latest