I am trying to test a clone of this node app with cypress. I only have very basic experience with cypress.
Unfortunately, the test of the node app (either started via webpack or via node --inspect) does not work. I have the fo
describe("Most basic test of adding a comments 2", function () {
it("Adding one comment 2", function () {
cy.pause();
cy.visit("http://localhost:8080");
cy.pause();
cy.get(".comment").click();
cy.pause();
cy.get("div#viewer.pdfViewer").click(50, 300);
cy.get("input#pdf-annotate-point-input").type("Testkommentar{enter}");
cy.get("input#pdf-annotate-point-input").debug();
expect(localStorage.getItem("example.pdf/pen/color")).to.be.not.null;
expect(localStorage.getItem("exaxmple.pdf/annotations")).to.be.not.null;
});
});
Unfortunately, it seems that cypress has no control over the Chrome browser. The browser is started and the URL is called but there is no further action and spcifically the pause() commands are not working.
Does anybody know whether I have to set some specific settings due to the fact that this is a node app?
Aucun commentaire:
Enregistrer un commentaire