DEV: Add base admin page page object (#30814)

This PR introduces a base page object for admin pages. Since we're standardizing using components, this makes writing tests easier by abstracting away details about selectors.
This commit is contained in:
Ted Johansson
2025-01-16 12:52:41 +08:00
committed by GitHub
parent a46d1547ab
commit 4682919744
11 changed files with 53 additions and 63 deletions

View File

@ -66,12 +66,12 @@ RSpec.describe "Admin EmbeddableHost Management", type: :system do
admin_embedding_page.visit
expect(page).not_to have_content("#{author.username}")
admin_embedding_page.click_posts_and_topics_tab
admin_embedding_page.click_tab("posts-and-topics")
admin_embedding_posts_and_topics_page.fill_in_embed_by_username(author)
admin_embedding_posts_and_topics_page.click_save
admin_embedding_page.click_hosts_tab
admin_embedding_page.click_tab("hosts")
expect(page).to have_content("#{author.username}")
end
end