Commit 1392cad8 authored by Connor Shea's avatar Connor Shea Committed by Alfredo Sumaran

Remove sleeping and replace escaped text.

parent 5d8ad797
...@@ -73,20 +73,20 @@ class Spinach::Features::EventFilters < Spinach::FeatureSteps ...@@ -73,20 +73,20 @@ class Spinach::Features::EventFilters < Spinach::FeatureSteps
end end
When 'I click "push" event filter' do When 'I click "push" event filter' do
sleep 1 wait_for_ajax
click_link("Push events") click_link("Push events")
sleep 2 wait_for_ajax
end end
When 'I click "team" event filter' do When 'I click "team" event filter' do
sleep 1 wait_for_ajax
click_link("Team") click_link("Team")
sleep 2 wait_for_ajax
end end
When 'I click "merge" event filter' do When 'I click "merge" event filter' do
sleep 1 wait_for_ajax
click_link("Merge events") click_link("Merge events")
sleep 2 wait_for_ajax
end end
end end
...@@ -69,13 +69,13 @@ describe 'Profile > Preferences', feature: true do ...@@ -69,13 +69,13 @@ describe 'Profile > Preferences', feature: true do
allowing_for_delay do allowing_for_delay do
find('#logo').click find('#logo').click
expect(page).to have_content('You don\'t have starred projects yet') expect(page).to have_content("You don't have starred projects yet")
expect(page.current_path).to eq starred_dashboard_projects_path expect(page.current_path).to eq starred_dashboard_projects_path
end end
click_link 'Your Projects' click_link 'Your Projects'
expect(page).not_to have_content('You don\'t have starred projects yet') expect(page).not_to have_content("You don't have starred projects yet")
expect(page.current_path).to eq dashboard_projects_path expect(page.current_path).to eq dashboard_projects_path
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment