mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:20:43 +08:00
20 lines
429 B
Ruby
20 lines
429 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class User < PageObjects::Pages::Base
|
|
def find(selector)
|
|
page.find(".user-content-wrapper #{selector}")
|
|
end
|
|
|
|
def active_user_primary_navigation
|
|
find(".user-primary-navigation li a.active")
|
|
end
|
|
|
|
def active_user_secondary_navigation
|
|
find(".user-secondary-navigation li a.active")
|
|
end
|
|
end
|
|
end
|
|
end
|