Revert "Bug 41916: Update Cypress tests"
This reverts commit 643fbded69.
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
ff26d0a92e
commit
18b8bdc15b
|
|
@ -143,7 +143,7 @@ describe("Accounts", () => {
|
|||
cy.left_menu_active_item_is("Accounts");
|
||||
|
||||
// Fill in the form for normal attributes
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
cy.get("input:invalid,textarea:invalid,select:invalid").should(
|
||||
"have.length",
|
||||
2
|
||||
|
|
@ -197,7 +197,7 @@ describe("Accounts", () => {
|
|||
|
||||
// relationshipWidgets
|
||||
cy.contains("Add new custom patron field").click();
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
cy.get("input:invalid,textarea:invalid,select:invalid").should(
|
||||
"have.length",
|
||||
2
|
||||
|
|
@ -241,7 +241,7 @@ describe("Accounts", () => {
|
|||
cy.intercept("POST", "/api/v1/sip2/accounts", {
|
||||
statusCode: 500,
|
||||
});
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
|
||||
cy.get("main div[class='alert alert-warning']").contains(
|
||||
"Something went wrong: Error: Internal Server Error"
|
||||
|
|
@ -252,7 +252,7 @@ describe("Accounts", () => {
|
|||
statusCode: 201,
|
||||
body: account,
|
||||
});
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"Account created"
|
||||
);
|
||||
|
|
@ -312,7 +312,7 @@ describe("Accounts", () => {
|
|||
delay: 1000,
|
||||
});
|
||||
}).as("edit-account");
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
cy.get("main div[class='modal_centered']").contains("Submitting...");
|
||||
cy.wait("@edit-account");
|
||||
cy.get("main div[class='alert alert-warning']").contains(
|
||||
|
|
@ -324,7 +324,7 @@ describe("Accounts", () => {
|
|||
statusCode: 200,
|
||||
body: account,
|
||||
});
|
||||
cy.get("#accounts_add").contains("Save").click();
|
||||
cy.get("#accounts_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"Account updated"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ describe("Institutions", () => {
|
|||
cy.left_menu_active_item_is("Institutions");
|
||||
|
||||
// Fill in the form for normal attributes
|
||||
cy.get("#institutions_add").contains("Save").click();
|
||||
cy.get("#institutions_add").contains("Submit").click();
|
||||
cy.get("input:invalid,textarea:invalid,select:invalid").should(
|
||||
"have.length",
|
||||
1
|
||||
|
|
@ -83,7 +83,7 @@ describe("Institutions", () => {
|
|||
cy.intercept("POST", "/api/v1/sip2/institutions", {
|
||||
statusCode: 500,
|
||||
});
|
||||
cy.get("#institutions_add").contains("Save").click();
|
||||
cy.get("#institutions_add").contains("Submit").click();
|
||||
|
||||
cy.get("main div[class='alert alert-warning']").contains(
|
||||
"Something went wrong: Error: Internal Server Error"
|
||||
|
|
@ -94,7 +94,7 @@ describe("Institutions", () => {
|
|||
statusCode: 201,
|
||||
body: institution,
|
||||
});
|
||||
cy.get("#institutions_add").contains("Save").click();
|
||||
cy.get("#institutions_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"Institution created"
|
||||
);
|
||||
|
|
@ -152,7 +152,7 @@ describe("Institutions", () => {
|
|||
delay: 1000,
|
||||
});
|
||||
});
|
||||
cy.get("#institutions_add").contains("Save").click();
|
||||
cy.get("#institutions_add").contains("Submit").click();
|
||||
|
||||
cy.get("main div[class='modal_centered']").contains("Submitting...");
|
||||
cy.wait(1000);
|
||||
|
|
@ -165,7 +165,7 @@ describe("Institutions", () => {
|
|||
statusCode: 200,
|
||||
body: institution,
|
||||
});
|
||||
cy.get("#institutions_add").contains("Save").click();
|
||||
cy.get("#institutions_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"Institution updated"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ describe("SystemPreferenceOverrides", () => {
|
|||
cy.left_menu_active_item_is("System preference overrides");
|
||||
|
||||
// Fill in the form for normal attributes
|
||||
cy.get("#system_preference_overrides_add").contains("Save").click();
|
||||
cy.get("#system_preference_overrides_add").contains("Submit").click();
|
||||
cy.get("input:invalid,textarea:invalid,select:invalid").should(
|
||||
"have.length",
|
||||
2
|
||||
|
|
@ -85,7 +85,7 @@ describe("SystemPreferenceOverrides", () => {
|
|||
cy.intercept("POST", "/api/v1/sip2/system_preference_overrides", {
|
||||
statusCode: 500,
|
||||
});
|
||||
cy.get("#system_preference_overrides_add").contains("Save").click();
|
||||
cy.get("#system_preference_overrides_add").contains("Submit").click();
|
||||
|
||||
cy.get("main div[class='alert alert-warning']").contains(
|
||||
"Something went wrong: Error: Internal Server Error"
|
||||
|
|
@ -96,7 +96,7 @@ describe("SystemPreferenceOverrides", () => {
|
|||
statusCode: 201,
|
||||
body: system_preference_override,
|
||||
});
|
||||
cy.get("#system_preference_overrides_add").contains("Save").click();
|
||||
cy.get("#system_preference_overrides_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"System preference override created"
|
||||
);
|
||||
|
|
@ -157,7 +157,7 @@ describe("SystemPreferenceOverrides", () => {
|
|||
});
|
||||
}
|
||||
);
|
||||
cy.get("#system_preference_overrides_add").contains("Save").click();
|
||||
cy.get("#system_preference_overrides_add").contains("Submit").click();
|
||||
|
||||
cy.get("main div[class='modal_centered']").contains("Submitting...");
|
||||
cy.wait(1000);
|
||||
|
|
@ -170,7 +170,7 @@ describe("SystemPreferenceOverrides", () => {
|
|||
statusCode: 200,
|
||||
body: system_preference_overrides,
|
||||
});
|
||||
cy.get("#system_preference_overrides_add").contains("Save").click();
|
||||
cy.get("#system_preference_overrides_add").contains("Submit").click();
|
||||
cy.get("main div[class='alert alert-info']").contains(
|
||||
"System preference override updated"
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue