2022-02-05 00:37:25 +00:00
|
|
|
@env:persist
|
|
|
|
Feature: Settings pane opens and can save settings persistently
|
|
|
|
Scenario: Open the Settings pane
|
2023-02-01 22:48:36 +00:00
|
|
|
Given I wait until the widget with type 'ProfileMgrView' is present
|
|
|
|
And I tap the 'OpenSettingsView' button
|
|
|
|
And I wait until the text 'Cwtch Settings' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
And I take a screenshot
|
|
|
|
|
|
|
|
Scenario: Change every setting (except Language)
|
2023-02-01 22:48:36 +00:00
|
|
|
Given I wait until the widget with type 'ProfileMgrView' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
Given I tap the 'OpenSettingsView' button
|
2023-02-01 22:48:36 +00:00
|
|
|
And I wait until the text 'Use Light Themes' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
When I tap the widget that contains the text "Use Light Themes"
|
|
|
|
And I tap the widget that contains the text "Block Unknown Contacts"
|
|
|
|
And I tap the widget that contains the text "Streamer/Presentation Mode"
|
|
|
|
And I tap the widget that contains the text "Enable Experiments"
|
2023-02-01 22:48:36 +00:00
|
|
|
Then I wait until the text 'Enable Group Chat' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
And I tap the widget that contains the text "Enable Group Chat"
|
|
|
|
And I tap the widget that contains the text "Hosting Servers"
|
|
|
|
And I tap the widget that contains the text "File Sharing"
|
2023-02-01 22:48:36 +00:00
|
|
|
Then I wait until the text 'Image Previews and Profile Pictures' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
And I tap the widget that contains the text "Image Previews and Profile Pictures"
|
2023-02-01 22:48:36 +00:00
|
|
|
And I wait until the text 'Download Folder' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
And I fill the "DownloadFolderPicker" field with "/this/is/a/test"
|
|
|
|
And I tap the widget that contains the text "Enable Clickable Links"
|
|
|
|
Then I expect the switch that contains the text "Use Light Themes" to be checked
|
|
|
|
And I expect the switch that contains the text "Block Unknown Contacts" to be checked
|
|
|
|
And I expect the switch that contains the text "Streamer/Presentation Mode" to be checked
|
|
|
|
And I expect the switch that contains the text "Enable Experiments" to be checked
|
|
|
|
And I expect the switch that contains the text "Enable Group Chat" to be checked
|
|
|
|
And I expect the switch that contains the text "Hosting Servers" to be checked
|
|
|
|
And I expect the switch that contains the text "File Sharing" to be checked
|
|
|
|
And I expect the switch that contains the text "Image Previews and Profile Pictures" to be checked
|
|
|
|
And I expect the "DownloadFolderPicker" to be "/this/is/a/test"
|
|
|
|
And I expect the switch that contains the text "Enable Clickable Links" to be checked
|
|
|
|
|
|
|
|
Scenario: When the app is reloaded, settings from the previous scenario have persisted
|
2023-02-01 22:48:36 +00:00
|
|
|
Given I wait until the widget with type 'ProfileMgrView' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
Given I tap the 'OpenSettingsView' button
|
2023-02-01 22:48:36 +00:00
|
|
|
And I wait until the text 'Use Light Themes' is present
|
2022-02-05 00:37:25 +00:00
|
|
|
Then I expect the switch that contains the text "Use Light Themes" to be checked
|
|
|
|
And I expect the switch that contains the text "Block Unknown Contacts" to be checked
|
|
|
|
And I expect the switch that contains the text "Streamer/Presentation Mode" to be checked
|
|
|
|
And I expect the switch that contains the text "Enable Experiments" to be checked
|
|
|
|
And I expect the switch that contains the text "Enable Group Chat" to be checked
|
|
|
|
And I expect the switch that contains the text "Hosting Servers" to be checked
|
|
|
|
And I expect the switch that contains the text "File Sharing" to be checked
|
|
|
|
And I expect the switch that contains the text "Image Previews and Profile Pictures" to be checked
|
|
|
|
And I expect the "DownloadFolderPicker" to be "/this/is/a/test"
|
|
|
|
And I expect the switch that contains the text "Enable Clickable Links" to be checked
|