mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 16:24:17 +08:00
e79a50d7a9
Usage: ``` click_logo # globally accessible PageObjects::Components::Logo.click PageObjects::Components::Logo.hover ```
18 lines
290 B
Ruby
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
|