forked from cwtch.im/cwtch-ui
gherkin tests: more timing
This commit is contained in:
parent
d9a6684891
commit
53cd3c58b7
|
@ -348,7 +348,7 @@ steps:
|
|||
|
||||
- name: ui-tests
|
||||
commands:
|
||||
- export PATH=$PATH:/Users/Dan/development/flutter/bin
|
||||
- export PATH=$PATH:/Users/Dan/development/flutter/bin:/usr/local/bin
|
||||
- export GEM_HOME=$HOME/.gem
|
||||
- export PATH=$GEM_HOME/ruby/2.6.0/bin:$PATH
|
||||
- ./run-tests.sh
|
||||
|
|
|
@ -7,7 +7,7 @@ Feature: Settings pane opens and can save settings persistently
|
|||
|
||||
Scenario: Change every setting (except Language)
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 4 second
|
||||
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
|
||||
|
@ -36,7 +36,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 tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Feature: Global 'language' setting
|
||||
Scenario: Change the language to French and back
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
Then I expect the text 'Language' to be present
|
||||
And I expect the text 'Langue' to be absent
|
||||
When I tap the widget that contains the text "English"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
Feature: Global 'Theme' setting
|
||||
Scenario: Change the theme to Mermaid
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
When I tap the "DropdownTheme" button
|
||||
And I tap the element that contains the text "Mermaid"
|
||||
Scenario: Change the theme to Light Mode
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
And I tap the widget that contains the text "Theme"
|
|
@ -3,6 +3,7 @@ Feature: Block unknown contacts setting
|
|||
Scenario: Carol adds Alice but Alice doesn't see it because Block Unknowns is enabled
|
||||
Given I wait until the widget with type 'ProfileMgrView' is present
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 2 second
|
||||
When I tap the widget that contains the text "Block Unknown Contacts"
|
||||
Then I expect the switch that contains the text "Block Unknown Contacts" to be checked
|
||||
Given I tap the back button
|
||||
|
@ -10,7 +11,7 @@ Feature: Block unknown contacts setting
|
|||
And I tap the button that contains the text "Carol"
|
||||
And I tap the button with tooltip "Add a new contact or conversation"
|
||||
When I fill the "txtAddP2P" field with "vbmmsbx3rhndpfz6t3jkrd7m3yu62xzrldxkdgsw4rsehiwuw3tmo7yd"
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
And I take a screenshot
|
||||
And I tap the back button
|
||||
And I wait until the text "Alice" is present
|
||||
|
|
|
@ -5,7 +5,7 @@ Feature: Streamer mode
|
|||
And I wait until the text "vbmmsbx3rhndpfz6t3jkrd7m3yu62xzrldxkdgsw4rsehiwuw3tmo7yd" is present
|
||||
And I wait until the text "pjurzypqui3dnpxj6aemk6cqz22yx6zfr5lq4jzu7muwe2yyx2zrnzyd" is present
|
||||
Given I tap the 'OpenSettingsView' button
|
||||
And I wait for 1 second
|
||||
And I wait for 2 second
|
||||
And I tap the widget that contains the text "Streamer/Presentation Mode"
|
||||
Then I expect the switch that contains the text "Streamer/Presentation Mode" to be checked
|
||||
When I tap the back button
|
||||
|
|
|
@ -95,6 +95,6 @@ void main() {
|
|||
ResetCwtchEnvironment(),
|
||||
AttachScreenshotOnFailedStepHook(),
|
||||
],
|
||||
(World world) { var res = app.main(); sleep(Duration(seconds:1)); return res;},
|
||||
(World world) { var res = app.main(); sleep(Duration(seconds:2)); return res;},
|
||||
);
|
||||
}
|
|
@ -26,7 +26,7 @@ source run-tests.env
|
|||
# macos sed doesn't have -z
|
||||
paths=$(find . -wholename "./integration_test/features/*/$1*.feature" | sort | awk '!/0$/{printf $0}/0$/' | sed "s/\.\//','\.\//g;s/^','/'/g;s/$/'/g")
|
||||
sed "s|featurePaths: REPLACED_BY_SCRIPT|featurePaths: <String>[$paths]|" integration_test/gherkin_suite_test.editable.dart > integration_test/gherkin_suite_test.dart
|
||||
# flutter pub run build_runner clean
|
||||
flutter pub run build_runner clean
|
||||
flutter pub run build_runner build --delete-conflicting-outputs
|
||||
LD_LIBRARY_PATH=$LDPATH DYLD_LIBRARY_PATH=$LDPATH CWTCH_HOME=./integration_test/env/temp/ flutter drive --headless --dart-define TEST_MODE=true --driver=test_driver/integration_test_driver.dart --target=integration_test/gherkin_suite_test.dart -d $DEVICE
|
||||
node index2.js
|
||||
|
|
Loading…
Reference in New Issue