From 8bd98f0288a152b4e06a46dbb3bb73e6bc26f013 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 25 Apr 2025 11:31:09 +0200 Subject: [PATCH] DEV: uses correct selector (#117) This is working with selenium, but this won't be working with playwright which is less permissive on selectors. --- spec/system/discotoc_timeline_user_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/system/discotoc_timeline_user_spec.rb b/spec/system/discotoc_timeline_user_spec.rb index 7af4b37..b624410 100644 --- a/spec/system/discotoc_timeline_user_spec.rb +++ b/spec/system/discotoc_timeline_user_spec.rb @@ -108,7 +108,8 @@ RSpec.describe "DiscoTOC", system: true do expect(page).to have_css( ".d-toc-item.d-toc-h1.active a[data-d-toc='toc-h1-heading-1-on-the-source-topic']", ) - find("a[href='/t/#{topic_1.slug}/#{topic_1.id}'").click + + find("a[href='/t/#{topic_1.slug}/#{topic_1.id}']").click expect(page).to have_css(".d-toc-item.d-toc-h1.active a[data-d-toc='toc-h1-heading-1']") expect(page).to have_no_css("a[data-d-toc='toc-h1-heading-1-on-the-source-topic']")