Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/dashboard/datetime_on_tooltips_spec.rb')
-rw-r--r--spec/features/dashboard/datetime_on_tooltips_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/dashboard/datetime_on_tooltips_spec.rb b/spec/features/dashboard/datetime_on_tooltips_spec.rb
index 48a6976f263..875ae41c55d 100644
--- a/spec/features/dashboard/datetime_on_tooltips_spec.rb
+++ b/spec/features/dashboard/datetime_on_tooltips_spec.rb
@@ -41,9 +41,9 @@ RSpec.describe 'Tooltips on .timeago dates', :js do
end
it 'has the datetime formated correctly' do
- expect(page).to have_selector('.js-timeago.snippet-created-ago', text: '1 day ago')
+ expect(page).to have_selector('[data-testid=snippet-created-at] .js-timeago', text: '1 day ago')
- page.find('.js-timeago.snippet-created-ago').hover
+ page.find('[data-testid=snippet-created-at] .js-timeago').hover
expect(datetime_in_tooltip).to eq(created_date)
end