mirror of
https://github.com/discourse/DiscoTOC.git
synced 2025-06-13 16:52:10 +00:00
DEV: uses correct selector (#117)
This is working with selenium, but this won't be working with playwright which is less permissive on selectors.
This commit is contained in:
parent
a2dbdcb442
commit
8bd98f0288
@ -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']")
|
||||
|
Loading…
x
Reference in New Issue
Block a user