summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRubén Dávila Santos <ruben@gitlab.com>2016-08-18 13:12:17 +0000
committerRuben Davila <rdavila84@gmail.com>2016-08-18 08:14:37 -0500
commit6ab44d17fd40cf4dcabb6035dc9fb233e66725cd (patch)
tree6625b2f1b9baa67ea55c3a924cfee989da887b4f /spec
parent0e5ac6f9dd66f2a1d055134a2f244f0c883aab3f (diff)
downloadgitlab-ce-6ab44d17fd40cf4dcabb6035dc9fb233e66725cd.tar.gz
Merge branch 'tab-persistance' into 'master'
Make new tabs persistent when changing view. ## What does this MR do? ## Are there points in the code the reviewer needs to double check? ## Why was this MR needed? ## What are the relevant issue numbers? ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [ ] Added for this feature/bug - [ ] All builds are passing - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) cc @stanhu @DouweM @rdavila See merge request !5859
Diffstat (limited to 'spec')
-rw-r--r--spec/features/merge_requests/create_new_mr_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/merge_requests/create_new_mr_spec.rb b/spec/features/merge_requests/create_new_mr_spec.rb
index b63931d9d35..b963d1305b5 100644
--- a/spec/features/merge_requests/create_new_mr_spec.rb
+++ b/spec/features/merge_requests/create_new_mr_spec.rb
@@ -49,14 +49,14 @@ feature 'Create New Merge Request', feature: true, js: true do
click_link 'Changes'
- expect(page.find_link('Inline')[:class]).to match(/\bactive\b/)
- expect(page.find_link('Side-by-side')[:class]).not_to match(/\bactive\b/)
+ expect(page).to have_css('a.btn.active', text: 'Inline')
+ expect(page).not_to have_css('a.btn.active', text: 'Side-by-side')
click_link 'Side-by-side'
- click_link 'Changes'
-
- expect(page.find_link('Inline')[:class]).not_to match(/\bactive\b/)
- expect(page.find_link('Side-by-side')[:class]).to match(/\bactive\b/)
+ within '.merge-request' do
+ expect(page).not_to have_css('a.btn.active', text: 'Inline')
+ expect(page).to have_css('a.btn.active', text: 'Side-by-side')
+ end
end
end