Update UI Tests to Run with Flutter 3 / In Drone #621

Merged
dan merged 25 commits from uitests into trunk 2023-02-01 22:48:37 +00:00
Owner
No description provided.
sarah added 3 commits 2023-01-31 19:57:19 +00:00
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/119
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/120
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/121
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/122
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/123
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/124
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/125
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/126
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/127
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/128
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/129
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/131
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/132
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/133
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/134
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/135
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/136
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/138
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/139
sarah force-pushed uitests from 418c773078 to bd3856fb27 2023-02-01 21:06:35 +00:00 Compare
sarah force-pushed uitests from bd3856fb27 to 154d1f1cfc 2023-02-01 21:14:27 +00:00 Compare
dan requested changes 2023-02-01 21:23:27 +00:00
.drone.yml Outdated
@ -63,0 +66,4 @@
- name: deps
path: /root/.pub-cache
commands:
# - flutter config --enable-linux-desktop
Owner

delete

delete
sarah marked this conversation as resolved
.drone.yml Outdated
@ -63,0 +68,4 @@
commands:
# - flutter config --enable-linux-desktop
- sudo apt update
- sudo apt-get install -y xvfb
Owner

add comment
#todo: add xvfb to openpriv/flutter-desktop:linux-fstable-3.3.9

add comment #todo: add xvfb to openpriv/flutter-desktop:linux-fstable-3.3.9
sarah marked this conversation as resolved
.drone.yml Outdated
@ -63,0 +71,4 @@
- sudo apt-get install -y xvfb
- ./fetch-tor.sh
- export PATH=$PATH:$PWD/linux/Tor
- export LD_LIBRARY_PATH="$PWD/linux/Tor/"
Owner

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"
prolly?

`LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"` prolly?
sarah marked this conversation as resolved
lib/main.dart Outdated
@ -44,3 +44,3 @@
WidgetsFlutterBinding.ensureInitialized();
print("runApp()");
runApp(Flwtch());
print("Testing");
Owner

default isn't testing this is main for running too

default isn't testing this is main for running too
sarah marked this conversation as resolved
lib/main.dart Outdated
@ -66,3 +67,3 @@
Future<dynamic> shutdownDirect(MethodCall call) async {
print(call);
await cwtch.Shutdown();
await cwtch.Shutdown().timeout(Duration(seconds: 1));
Owner

ah a cool way to bypass the fact we cant properly stop cwtch cus deep 2 min connection attempts...

On the other hand, part of me wants to ask if this will prevent anything in profiles being saved proply but a) prolly not and b) in practice i just force close it if it's being slow.... I don't totally love this tho

ah a cool way to bypass the fact we cant properly stop cwtch cus deep 2 min connection attempts... On the other hand, part of me wants to ask if this will prevent anything in profiles being saved proply but a) prolly not and b) in practice i just force close it if it's being slow.... I don't totally love this tho
Author
Owner

removed timeout - it was a debugging artifact.

removed timeout - it was a debugging artifact.
sarah marked this conversation as resolved
lib/main.dart Outdated
@ -188,3 +196,3 @@
Future<void> shutdown() async {
globalAppState.SetModalState(ModalState.shutdown);
await cwtch.Shutdown();
print("shutting down");
Owner

debut println

debut println
sarah marked this conversation as resolved
lib/main.dart Outdated
@ -191,2 +199,3 @@
await cwtch.Shutdown().timeout(Duration(seconds: 1));
// Wait a few seconds as shutting down things takes a little time..
Future.delayed(Duration(seconds: 1)).then((value) {
print("done");
Owner

debug println

debug println
sarah marked this conversation as resolved
run-tests.sh Outdated
@ -18,2 +7,2 @@
xdg-open integration_test/gherkin/reports/cucumber_report.html
fi
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/"
Owner

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./linux/:linux/Tor"
sarah marked this conversation as resolved
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/140
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/141
sarah added 1 commit 2023-02-01 22:00:57 +00:00
continuous-integration/drone/pr Build was killed Details
5232e13d95
Clean Up for UI Automated Testing
sarah added 1 commit 2023-02-01 22:05:04 +00:00
continuous-integration/drone/pr Build was killed Details
b2dc292771
Fix Shutdown Logging
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/145
Member
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch-ui/146
sarah added 1 commit 2023-02-01 22:25:51 +00:00
continuous-integration/drone/pr Build is passing Details
0f1873259c
PATH and LD_LIBRARY path
Member
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch-ui/149
dan merged commit 8417204a24 into trunk 2023-02-01 22:48:37 +00:00
Sign in to join this conversation.
No reviewers
dan
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#621
No description provided.