Skip to content

Commit

Permalink
[QOLDEV-312] revert usage of 'press' when text contains an apostrophe
Browse files Browse the repository at this point in the history
- There is a bug in Behaving that breaks this step when single quotes are used.
Raised ggozad/behaving#137
  • Loading branch information
ThrawnCA committed Jun 20, 2023
1 parent 9d575d7 commit 055f86d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/features/google_analytics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Feature: GoogleAnalytics
And I should see an element with xpath "//meta[@name='DCTERMS.type' and @content='Text' and @scheme='DCTERMS.DCMIType']"
And I should see an element with xpath "//meta[@name='AGLSTERMS.documentType' and @content='index']"

When I press "Dave's books"
# Can't use 'I press' because the text contains an apostrophe
# See https://github.com/ggozad/behaving/issues/137
When I click the link with text that contains "Dave's books"
And I press "About"
Then I should see an element with xpath "//meta[@name='DCTERMS.title' and contains(@content, 'Dave')]"
And I should see an element with xpath "//meta[@name='DCTERMS.publisher' and @content='corporateName=The State of Queensland; jurisdiction=Queensland' and @scheme='AGLSTERMS.AglsAgent']"
Expand Down

0 comments on commit 055f86d

Please sign in to comment.