Skip to content

Commit

Permalink
Adds cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
omahane committed Nov 22, 2024
1 parent ca221e3 commit b458a3f
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@content_type__event
Feature: Content Type: Event

Scenario: Log in and create Event as a Lovell editor
When I am logged in as a user with the roles "vamc_content_creator, content_publisher"
And my workbench access sections are set to "1187"
Then I am at "/node/add/event"
And I select option "---Manila VA Clinic" from dropdown "Section"
And I fill in "Name" with "[TEST] Manila event"
And I fill in field with selector "#edit-field-datetime-range-timezone-0-time-wrapper-value-date" with value "2026-11-04"
And I fill in field with selector "#edit-field-datetime-range-timezone-0-time-wrapper-end-value-date" with value "2026-11-04"
And I fill in field with selector "#edit-field-datetime-range-timezone-0-time-wrapper-value-time" with value "10:00:00"
And I fill in field with selector "#edit-field-datetime-range-timezone-0-time-wrapper-end-value-time" with value "11:00:00"
And I select option "Manila" from dropdown "Time zone"
And I select option "Manila VA Clinic: Events" from dropdown "Where should the event be listed?"
And I fill in autocomplete field with selector "#edit-field-facility-location-0-target-id" with value "Manila VA Clinic | Manila VA Clinic (1059)"
And I select option "Published" from dropdown "Save as"
And I fill in "Revision log message" with "[TEST] Revision log message"
And I click the "Save" button
Then I should be at "manila-va-clinic"

0 comments on commit b458a3f

Please sign in to comment.