From c44c3cf31872e2af17ce72a5b545a41971e4b72b Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Tue, 9 Jan 2024 13:49:37 -0500 Subject: [PATCH] Add check for banner element visibility. --- .../features/facilities/vba/vba_facility.feature | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/cypress/integration/features/facilities/vba/vba_facility.feature b/tests/cypress/integration/features/facilities/vba/vba_facility.feature index 0af4c7d16bb..672d3366a22 100644 --- a/tests/cypress/integration/features/facilities/vba/vba_facility.feature +++ b/tests/cypress/integration/features/facilities/vba/vba_facility.feature @@ -10,3 +10,16 @@ Feature: CMS User may effectively interact with the VBA Facility form Then I am at "/node/4071/" Then the primary tab "View" should exist Then the primary tab "Edit" should not exist + + Scenerio: Enable banner segment and ensure expected fields are present + Given I am logged in as a user with the "content_admin" role + When I am at "node/add/vba_facility" + Then I should not see an element with the selector "#edit-field-alert-type" + And I should not see an element with the selector "#edit-field-dismissible-option--wrapper" + And I should not see an element with the selector "#edit-field-banner-title-0-value" + And I should not see an element with the selector "#edit-field-banner-content-wrapper" + When I click to "Display a banner alert on this facility" + Then I should not see an element with the selector "#edit-field-alert-type" + And I should see an element with the selector "#edit-field-dismissible-option--wrapper" + And I should see an element with the selector "#edit-field-banner-title-0-value" + And I should see an element with the selector "#edit-field-banner-content-wrapper"