Skip to content

Commit

Permalink
Merge pull request #316 from GeoWerkstatt/dependabot/npm_and_yarn/src…
Browse files Browse the repository at this point in the history
…/ClientApp/cypress/request-and-cypress-3.0.1

Bump @cypress/request and cypress in /src/ClientApp
  • Loading branch information
danjov authored Oct 10, 2023
2 parents cec9be4 + 8c2a7f8 commit aea6156
Show file tree
Hide file tree
Showing 15 changed files with 153 additions and 104 deletions.
10 changes: 10 additions & 0 deletions src/ClientApp/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {},
baseUrl: "http://localhost:44472",
viewportWidth: 1920,
viewportHeight: 1080,
},
});
4 changes: 0 additions & 4 deletions src/ClientApp/cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ describe("Home page tests", () => {
cy.get("tbody").children().should("have.length", 4);

cy.contains("td", "Ergonomic Metal Tuna").parent("tr").children("td").find("button[name=edit-button]").click();
// submit button should only be visible if form is dirty
cy.get("button[type=submit]").should("not.be.visible");
// submit button should only be enabled if form is dirty
cy.get("button[type=submit]").should("be.disabled");
cy.get("form[name=standort-form]")
.find("input[name=bezeichnung]")
.should("be.visible")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe("Input form tests", () => {
it("Open Bohrung Add Form", function () {
cy.get("button[name=add-button]").scrollIntoView().click();

cy.get("button[type=submit]").should("be.disabled");
cy.get("form[name=bohrung-form]").should("contain", "Bohrung erstellen");
cy.get("form[name=bohrung-form]")
.find("input[name=bezeichnung]")
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/ClientApp/cypress/support/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"no-undef": "off"
}
}
7 changes: 7 additions & 0 deletions src/ClientApp/cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Cypress.on("uncaught:exception", (err, runnable, promise) => {
// Turn off promise rejection errors because the API does
// not get mocked or started during the e2e tests.
if (promise) {
return false;
}
});
Loading

0 comments on commit aea6156

Please sign in to comment.