Skip to content

Commit 483f813

Browse files
authored
Merge pull request #1286 from ORCID/tweak-cypress-test
tweak name char limit tests
2 parents 2fc79d5 + 1d03e6b commit 483f813

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/cypress/e2e/retention/edit-user.cy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe("Test the edit user form", () => {
2121
// Check for max length validation
2222
cy.get("#field_firstName")
2323
.should("have.class", "ng-invalid")
24+
.clear()
2425
.type("Automated");
2526
// Clear last name input field
2627
cy.get("#field_lastName").clear();
@@ -32,7 +33,10 @@ describe("Test the edit user form", () => {
3233
.type(data.testString + data.testString);
3334
cy.get("#save-entity2").invoke("attr", "disabled").should("exist");
3435
// Check for max length validation
35-
cy.get("#field_lastName").should("have.class", "ng-invalid").type("Test");
36+
cy.get("#field_lastName")
37+
.should("have.class", "ng-invalid")
38+
.clear()
39+
.type("Test");
3640
// Check disabled fields
3741
cy.get("#field_email").invoke("attr", "disabled").should("exist");
3842
cy.get("#field_mainContact").invoke("attr", "disabled").should("exist");

0 commit comments

Comments
 (0)