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
326 stars 74 forks source link

Create a workflow to run integration test #2990

Open tddang-linagora opened 4 months ago

tddang-linagora commented 4 months 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 4 months ago

@hoangdat

hoangdat commented 4 months ago

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

tk-nguyen commented 4 months ago

Yes

hoangdat commented 4 months ago

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