Skip to content

Commit

Permalink
Fix detection of “A to Z” string
Browse files Browse the repository at this point in the history
This commit fixes the feature test that looks for the “A to Z” string. This string is actually separated by Unicode hairline spaces which makes these tests fail in Chrome, which support these spaces.
  • Loading branch information
Ruben Arakelyan committed Jul 5, 2018
1 parent 4cca668 commit 40509f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions features/step_definitions/viewing_browse_steps.rb
Expand Up @@ -78,11 +78,11 @@
end

Then(/^the A to Z label should be present$/) do
assert page.has_content?('A to Z')
assert page.has_content?("A\u200Ato\u200AZ")
end

Then(/^the A to Z label should not be present$/) do
assert page.has_no_content?('A to Z')
assert page.has_no_content?("A\u200Ato\u200AZ")
end

When(/^I visit that browse page$/) do
Expand Down

0 comments on commit 40509f1

Please sign in to comment.