discourse/spec/system/page_objects/components/logo.rb
Joffrey JAFFEUX e79a50d7a9
DEV: adds logo page component (#28276)
Usage:

```
click_logo # globally accessible
PageObjects::Components::Logo.click
PageObjects::Components::Logo.hover
```
2024-08-08 13:52:48 +02:00

18 lines
290 B
Ruby

# frozen_string_literal: true
module PageObjects
module Components
class Logo < PageObjects::Pages::Base
SELECTOR = "#site-logo"
def self.click
new.find(SELECTOR).click
end
def self.hover
new.find(SELECTOR).hover
end
end
end
end