DEV: adds logo page component (#28276)

Usage:

```
click_logo # globally accessible
PageObjects::Components::Logo.click
PageObjects::Components::Logo.hover
```
This commit is contained in:
Joffrey JAFFEUX
2024-08-08 13:52:48 +02:00
committed by GitHub
parent bf3d8a0a94
commit e79a50d7a9
13 changed files with 42 additions and 26 deletions

View File

@@ -47,7 +47,7 @@ describe "User preferences | Profile", type: :system do
expect(page).to have_current_path("/faq")
find("#site-logo").click
click_logo
expect(page).to have_current_path("/u/#{user.username}/preferences/profile")
@@ -60,7 +60,7 @@ describe "User preferences | Profile", type: :system do
it "disables client-side routing while missing required fields" do
user_preferences_profile_page.visit(user)
find("#site-logo").click
click_logo
expect(page).to have_current_path("/u/#{user.username}/preferences/profile")
end