Skip to content

Commit

Permalink
VACMS-19616: Adds tests for removing the remove button.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsasser committed Jan 7, 2025
1 parent e1c5ce4 commit 1219c63
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Content Type: Checklist
And the element with selector "#edit-field-checklist-0-subform-field-checklist-sections-0-subform-field-section-header-0-value" should have attribute "value" containing value "[Test Header Value]"
And the element with selector "#edit-field-checklist-0-subform-field-checklist-sections-0-subform-field-checklist-items-0-value" should have attribute "value" containing value "[Test Items Value]"
And the option "VACO" from dropdown with selector "#edit-field-administration" should be selected
And an element with the selector "#edit-field-contact-information-0-top-links-remove-button" should not exist

# Make sure additional edits are saved
And I fill in "Page title" with "[Test Data] Save and Continue Test"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Feature: Content Type: Resources and Support Detail Page
Given I am logged in as a user with the "content_admin" role
When I am at "node/add/support_resources_detail_page"
Then I should see "Tags"
And an element with the selector "#edit-field-contact-information-0-top-links-remove-button" should not exist

Given I select option "- None -" from dropdown "Audience"
Then I should not see an element with the selector "#edit-field-tags-0-subform-field-audience-beneficiares-wrapper"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ const creators = {
"edit-field-steps-0-subform-field-step-0-subform-field-wysiwyg-0-value",
faker.lorem.sentence()
);
cy.get("#edit-field-contact-information-0-top-links-remove-button").should(
"not.exist"
);
return cy.wait(1000);
},
q_a: () => {
Expand All @@ -462,6 +465,9 @@ const creators = {
faker.lorem.sentence()
);
cy.findAllByLabelText("Section").select("VACO", { force: true });
cy.get("#edit-field-contact-information-0-top-links-remove-button").should(
"not.exist"
);
return cy;
},
press_release: () => {
Expand Down

0 comments on commit 1219c63

Please sign in to comment.