linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
295 stars 63 forks source link

Create a workflow to run integration test #2990

Open tddang-linagora opened 1 month ago

tddang-linagora commented 1 month ago

Description

We decided to use Selenium Maven to write integration test for Flutter Web. Ideally, we should run this test in a controlled environment, and the tested website only lives until the test has finished running.

About Selenium test

About Environment variables

These variables below must be inside the web resource when it's running

SERVER_URL=preprod-url
DOMAIN_REDIRECT_URL=http://localhost:2023
WEB_OIDC_CLIENT_ID=teammail-web-dev
OIDC_SCOPES=openid,profile,email,offline_access
APP_GRID_AVAILABLE=supported
FCM_AVAILABLE=supported
IOS_FCM=unsupported
FORWARD_WARNING_MESSAGE=
tddang-linagora commented 1 month ago

@hoangdat

hoangdat commented 1 month ago

@tk-nguyen Can we build image, and run test directly with this image in github action?

tk-nguyen commented 1 month ago

Yes

hoangdat commented 1 month ago

@tk-nguyen please help us to do the POC with it.