mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 00:44:53 +08:00
Updates styles for the onboarding icebreaker step including making the cards buttons, adding focus styles, and updating copy. Before: <img width="500" alt="image" src="https://github.com/user-attachments/assets/b23b7c80-0fe6-4b2b-a9b2-0ccf7e17682e" /> After: <img width="500" alt="image" src="https://github.com/user-attachments/assets/399e126b-e59b-431f-adc8-746d275354a5" /> --------- Co-authored-by: Gabriel Grubba <gabriel@discourse.org>
33 lines
612 B
Ruby
33 lines
612 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Modals
|
|
class AdminOnboardingPredefinedTopics < PageObjects::Modals::Base
|
|
MODAL_SELECTOR = ".predefined-topic-options-modal"
|
|
|
|
def open?
|
|
has_css?("#{MODAL_SELECTOR}")
|
|
end
|
|
|
|
def closed?
|
|
has_no_css?("#{MODAL_SELECTOR}")
|
|
end
|
|
|
|
def topic_cards
|
|
all(".predefined-topic-options-modal__card")
|
|
end
|
|
|
|
def topic_card_count
|
|
topic_cards.count
|
|
end
|
|
|
|
def select_topic(index)
|
|
topic_cards[index].click
|
|
end
|
|
|
|
def cancel
|
|
close
|
|
end
|
|
end
|
|
end
|
|
end
|