blob: 8e6ce6674759f12a3890c62e31c13d8ed2d204b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
module QA
module Flow
module Settings
extend self
def disable_snowplow
Flow::Login.while_signed_in_as_admin do
QA::Page::Main::Menu.perform(&:go_to_admin_area)
QA::Page::Admin::Menu.perform(&:go_to_general_settings)
QA::Page::Admin::Settings::Component::Snowplow.perform(&:disable_snowplow_tracking)
end
end
def enable_snowplow
Flow::Login.while_signed_in_as_admin do
QA::Page::Main::Menu.perform(&:go_to_admin_area)
QA::Page::Admin::Menu.perform(&:go_to_general_settings)
QA::Page::Admin::Settings::Component::Snowplow.perform(&:enable_snowplow_tracking)
end
end
end
end
end
QA::Flow::Settings.prepend_mod_with('Flow::Settings', namespace: QA)
|