Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
ISAICP-6590: Fix test coverage to check destination in link.
Browse files Browse the repository at this point in the history
  • Loading branch information
saidatom committed Aug 25, 2021
1 parent c3d258d commit d925c52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/features/support/support_menu.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ Feature:
When I am on the homepage
Then I should see the link "Take a tour"
And I should see the link "Contact support"
And the response should contain "<a href=\"/contact?destination=/homepage\" class=\"support-menu__link\" data-drupal-link-query=\"{&quot;destination&quot;:&quot;\/homepage&quot;}\" data-drupal-link-system-path=\"contact\">Contact support</a>"
And the response should contain "<a href=\"/contact?destination=/homepage\" class=\"support-menu__link\" data-drupal-link-system-path=\"contact\">Contact support</a>"

When I go to "/collections"
Then I should not see the link "Take a tour"
But I should see the link "Contact support"
And the response should contain "<a href=\"/contact?destination=/collections\" class=\"support-menu__link\" data-drupal-link-query=\"{&quot;destination&quot;:&quot;\/collections&quot;}\" data-drupal-link-system-path=\"contact\">Contact support</a>"
And the response should contain "<a href=\"/contact?destination=/collections\" class=\"support-menu__link\" data-drupal-link-system-path=\"contact\">Contact support</a>"

When I go to "/keep-up-to-date"
Then I should see the link "Take a tour"
And I should see the link "Contact support"
And the response should contain "<a href=\"/contact?destination=/keep-up-to-date\" class=\"support-menu__link\" data-drupal-link-query=\"{&quot;destination&quot;:&quot;\/keep-up-to-date&quot;}\" data-drupal-link-system-path=\"contact\">Contact support</a>"
And the response should contain "<a href=\"/contact?destination=/keep-up-to-date\" class=\"support-menu__link\" data-drupal-link-system-path=\"contact\">Contact support</a>"

When I go to the homepage of the "Hotel California" collection
Then I should see the link "Take a tour"
Expand Down

0 comments on commit d925c52

Please sign in to comment.