|
|
@ -214,9 +214,9 @@ export const genTest = (apiType, dbType) => { |
|
|
|
// submit button & validate
|
|
|
|
// submit button & validate
|
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
|
|
|
|
|
|
|
|
cy.get(".ant-alert-message") |
|
|
|
cy.get( |
|
|
|
.contains("Successfully submitted form data") |
|
|
|
".ant-alert-message :contains('Successfully submitted form data')" |
|
|
|
.should("exist"); |
|
|
|
).should("exist"); |
|
|
|
|
|
|
|
|
|
|
|
// end of test removes newly added rows from table. that step validates if row was successfully added.
|
|
|
|
// end of test removes newly added rows from table. that step validates if row was successfully added.
|
|
|
|
}); |
|
|
|
}); |
|
|
@ -238,9 +238,9 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// submit button & validate
|
|
|
|
// submit button & validate
|
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".ant-alert-message") |
|
|
|
cy.get(".ant-alert-message :contains('Congratulations!')").should( |
|
|
|
.contains("Congratulations!") |
|
|
|
"exist" |
|
|
|
.should("exist"); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// end of test removes newly added rows from table. that step validates if row was successfully added.
|
|
|
|
// end of test removes newly added rows from table. that step validates if row was successfully added.
|
|
|
|
}); |
|
|
|
}); |
|
|
@ -262,9 +262,9 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// submit button & validate
|
|
|
|
// submit button & validate
|
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".ant-alert-message") |
|
|
|
cy.get(".ant-alert-message :contains('Congratulations!')").should( |
|
|
|
.contains("Congratulations") |
|
|
|
"exist" |
|
|
|
.should("exist"); |
|
|
|
); |
|
|
|
cy.get("button") |
|
|
|
cy.get("button") |
|
|
|
.contains("Submit Another Form") |
|
|
|
.contains("Submit Another Form") |
|
|
|
.should("exist") |
|
|
|
.should("exist") |
|
|
@ -288,8 +288,7 @@ export const genTest = (apiType, dbType) => { |
|
|
|
|
|
|
|
|
|
|
|
// submit button & validate
|
|
|
|
// submit button & validate
|
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".nc-form").find("button").contains("Submit").click(); |
|
|
|
cy.get(".ant-alert-message") |
|
|
|
cy.get(".ant-alert-message :contains('Congratulations!')") |
|
|
|
.contains("Congratulations") |
|
|
|
|
|
|
|
.should("exist") |
|
|
|
.should("exist") |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
// validate if form has appeared again
|
|
|
|
// validate if form has appeared again
|
|
|
|