summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-06-07 10:54:54 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-06-07 10:54:54 -0500
commit60d2a7c3557964da7425c37bb871c5131f615d5e (patch)
tree19abe498831e48056ddd9b4bbb40eb1260e648f4 /features
parentd565b30ce60e0ad83f8a63b235eb923524665712 (diff)
downloadgitlab-ce-60d2a7c3557964da7425c37bb871c5131f615d5e.tar.gz
Use data attributes instead of class
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/issues/issues.rb4
-rw-r--r--features/steps/project/merge_requests.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/issues/issues.rb b/features/steps/project/issues/issues.rb
index 30db6e5d4e2..11f2b5d1d87 100644
--- a/features/steps/project/issues/issues.rb
+++ b/features/steps/project/issues/issues.rb
@@ -28,7 +28,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I click link "Closed"' do
- find('.issues-state-filters .state-closed span', text: 'Closed').click
+ find('.issues-state-filters [data-state="closed"] span', text: 'Closed').click
end
step 'I click button "Unsubscribe"' do
@@ -44,7 +44,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
step 'I click link "All"' do
- find('.issues-state-filters .state-all span', text: 'All').click
+ find('.issues-state-filters [data-state="all"] span', text: 'All').click
# Waits for load
expect(find('.issues-state-filters > .active')).to have_content 'All'
end
diff --git a/features/steps/project/merge_requests.rb b/features/steps/project/merge_requests.rb
index 0e70b832562..7f1e9e693af 100644
--- a/features/steps/project/merge_requests.rb
+++ b/features/steps/project/merge_requests.rb
@@ -26,7 +26,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I click link "All"' do
- find('.issues-state-filters .state-all span', text: 'All').click
+ find('.issues-state-filters [data-state="all"] span', text: 'All').click
# Waits for load
expect(find('.issues-state-filters > .active')).to have_content 'All'
end
@@ -36,7 +36,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I click link "Closed"' do
- find('.issues-state-filters .state-closed span', text: 'Closed').click
+ find('.issues-state-filters [data-state="closed"] span', text: 'Closed').click
end
step 'I should see merge request "Wiki Feature"' do