discourse/spec/system/page_objects/modals/admin_onboarding_predefined_topics.rb
Kris 3a278b25a3
UX: update styling of icebreaker step for onboarding (#38066)
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>
2026-02-25 16:30:17 -05:00

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