diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 01:36:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-12 05:12:42 -0400 |
commit | 584f8601eff79fe6e400026ba6db086002ce2cba (patch) | |
tree | ca092524666d4b7353d766512800b8992359ac2a /features/steps/project/issues/labels.rb | |
parent | 69bbc413fec7aa4168d9ff12df5421674db90032 (diff) | |
download | gitlab-ce-584f8601eff79fe6e400026ba6db086002ce2cba.tar.gz |
Change `within` to `page.within` in feature steps
Diffstat (limited to 'features/steps/project/issues/labels.rb')
-rw-r--r-- | features/steps/project/issues/labels.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/features/steps/project/issues/labels.rb b/features/steps/project/issues/labels.rb index 4de8a39672e..2828f02c449 100644 --- a/features/steps/project/issues/labels.rb +++ b/features/steps/project/issues/labels.rb @@ -8,13 +8,13 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps end step 'I remove label \'bug\'' do - within "#label_#{bug_label.id}" do + page.within "#label_#{bug_label.id}" do click_link 'Remove' end end step 'I delete all labels' do - within '.labels' do + page.within '.labels' do all('.btn-remove').each do |remove| remove.click sleep 0.05 @@ -23,7 +23,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps end step 'I should see labels help message' do - within '.labels' do + page.within '.labels' do expect(page).to have_content 'Create first label or generate default set of '\ 'labels' end @@ -48,37 +48,37 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps end step 'I should see label label exist error message' do - within '.label-form' do + page.within '.label-form' do expect(page).to have_content 'Title has already been taken' end end step 'I should see label color error message' do - within '.label-form' do + page.within '.label-form' do expect(page).to have_content 'Color is invalid' end end step 'I should see label \'feature\'' do - within '.manage-labels-list' do + page.within '.manage-labels-list' do expect(page).to have_content 'feature' end end step 'I should see label \'bug\'' do - within '.manage-labels-list' do + page.within '.manage-labels-list' do expect(page).to have_content 'bug' end end step 'I should not see label \'bug\'' do - within '.manage-labels-list' do + page.within '.manage-labels-list' do expect(page).not_to have_content 'bug' end end step 'I should see label \'support\'' do - within '.manage-labels-list' do + page.within '.manage-labels-list' do expect(page).to have_content 'support' end end @@ -90,7 +90,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps end step 'I should see label \'fix\'' do - within '.manage-labels-list' do + page.within '.manage-labels-list' do expect(page).to have_content 'fix' end end |