Fix Tor tests, Remove Waits in 01_general tests

This commit is contained in:
Sarah Jamie Lewis 2023-01-31 14:13:45 -08:00
parent 431a011cba
commit dca4d080df
4 changed files with 12 additions and 13 deletions

View File

@ -71,6 +71,9 @@ steps:
- sudo apt-get install --fix-missing -y xvfb
- export DISPLAY=:99
- sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- ./fetch-tor.sh
- export PATH=$PATH:$PWD/linux/Tor
- tor --version
- ./run-tests.sh 01_general
- name: test-build-android

2
.gitignore vendored
View File

@ -62,6 +62,8 @@ integration_test/gherkin/
integration_test/CustomSteps.md
analysis_options.yaml
integration_test/env/default/tor
linux/Tor
linux/tor.tar.gz
coverage
test/failures

View File

@ -1,7 +1,7 @@
@env:clean
Feature: Splash screen displays and then closes
Scenario: splash screen appears
Then I expect the widget 'SplashView' to be present within 1 second
Then I expect the widget 'SplashView' to be present within 10 seconds
Then I expect the widget 'ProfileManagerView' to be present within 10 seconds
# first-run of cwtch creates expected files and folders
Then I expect the folder 'integration_test/env/temp' to exist

View File

@ -3,30 +3,24 @@ Feature: Settings pane opens and can save settings persistently
Scenario: Open the Settings pane
Given I wait until the widget with type 'ProfileMgrView' is present
And I tap the 'OpenSettingsView' button
And I wait for 1 second
Then I expect the text 'Cwtch Settings' to be present
Then I expect the text 'Cwtch Settings' to be present within 5 seconds
And I take a screenshot
Scenario: Change every setting (except Language)
Given I wait until the widget with type 'ProfileMgrView' is present
Given I tap the 'OpenSettingsView' button
And I wait for 1 second
And I wait until the text 'Use Light Themes' is present
When I tap the widget that contains the text "Use Light Themes"
#And I choose option 3 from the "DropdownTheme" dropdown
#When I tap the "DropdownTheme" button
#And I tap the first "ddi_mermaid" element
#And I tap the element that contains the text "Mermaid"
#And I tap the element that contains the text "Mermaid" within the "DropdownTheme"
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"
And I wait for 1 second
And I wait until the text 'Enable Group Chat' is present
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"
And I wait for 1 seconds
And I wait until the text 'Image Previews and Profile Pictures' is present
And I tap the widget that contains the text "Image Previews and Profile Pictures"
And I wait for 1 seconds
And I wait until the text 'Download Folder' is present
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
@ -43,7 +37,7 @@ Feature: Settings pane opens and can save settings persistently
Scenario: When the app is reloaded, settings from the previous scenario have persisted
Given I wait until the widget with type 'ProfileMgrView' is present
Given I tap the 'OpenSettingsView' button
And I wait for 1 second
And I wait until the text 'Use Light Themes' is present
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