blob: 775b7686c10e08712e949df0156e55ecd9896ab8 (
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
|
# frozen_string_literal: true
module QA
module Flow
module Settings
module_function
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
|