mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
* Fix data export + Capybara * Continue? * A ton of system tests :D + test cleanup * More system tests * Add placeholder keys for tests? * Get rid of the double-query! * Speed up CI Chrome setup by avoiding snap installs * Pin CI Chrome version to reduce system test flakiness * Stabilize integrations settings system test interaction
24 lines
546 B
Ruby
24 lines
546 B
Ruby
module SettingsSystemTestHelpers
|
|
private
|
|
|
|
def assert_settings_page(path:, marker_text:)
|
|
visit path
|
|
|
|
assert_current_path path, ignore_query: true
|
|
assert_text "Settings"
|
|
assert_text marker_text
|
|
end
|
|
|
|
def choose_select_option(select_id, option_text)
|
|
find("##{select_id}").click
|
|
assert_selector ".dashboard-select-popover"
|
|
|
|
within ".dashboard-select-popover" do
|
|
find("[role='option']", text: option_text, match: :first).click
|
|
end
|
|
end
|
|
|
|
def within_modal(&)
|
|
within ".bits-modal-content", &
|
|
end
|
|
end
|