diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-13 15:08:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-13 15:08:49 +0300 |
commit | 988424215cf104d9ee24bb1751141424cffb32d1 (patch) | |
tree | 9d2525571ecc693902b949ac8441e8c97b299c3c /spec/features/user_sorts_things_spec.rb | |
parent | 2705a15deaef07b1a38a53b9539d02f8ad499ce3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/user_sorts_things_spec.rb')
-rw-r--r-- | spec/features/user_sorts_things_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/user_sorts_things_spec.rb b/spec/features/user_sorts_things_spec.rb index 9cff08c7f29..bcf3defe9c6 100644 --- a/spec/features/user_sorts_things_spec.rb +++ b/spec/features/user_sorts_things_spec.rb @@ -6,7 +6,7 @@ require "spec_helper" # to check if the sorting option set by user is being kept persisted while going through pages. # The `it`s are named here by convention `starting point -> some pages -> final point`. # All those specs are moved out to this spec intentionally to keep them all in one place. -RSpec.describe "User sorts things" do +RSpec.describe "User sorts things", :js do include Spec::Support::Helpers::Features::SortingHelpers include DashboardHelper @@ -22,12 +22,12 @@ RSpec.describe "User sorts things" do sign_in(current_user) end - it "issues -> project home page -> issues", :js do - sort_option = 'Updated date' + it "issues -> project home page -> issues" do + sort_option = s_('SortOptions|Updated date') visit(project_issues_path(project)) - click_button 'Created date' + click_button s_('SortOptions|Created date') click_button sort_option visit(project_path(project)) @@ -37,11 +37,11 @@ RSpec.describe "User sorts things" do end it "merge requests -> dashboard merge requests" do - sort_option = 'Updated date' + sort_option = s_('SortOptions|Updated date') visit(project_merge_requests_path(project)) - sort_by(sort_option) + pajamas_sort_by(sort_option) visit(assigned_mrs_dashboard_path) |