discourse/spec/system/page_objects/pages/wizard.rb
Ted Johansson 3126c50baa
DEV: Update member access wizard step to use toggle group (#28013)
We want to change the design of the "member experience" step of the wizard from using checkbox switches to using radio toggle groups.
2024-07-29 14:07:06 +08:00

20 lines
398 B
Ruby

# frozen_string_literal: true
module PageObjects
module Pages
class Wizard < PageObjects::Pages::Base
def click_jump_in
find(".jump-in").click
end
def go_to_next_step
find(".wizard-container__button.next").click
end
def select_access_option(label)
find(".wizard-container__radio-choice", text: label).click
end
end
end
end