Commit Graph

3171 Commits

Author SHA1 Message Date
David Négrier
84f7a8c383 Pretty fix 2021-12-06 18:20:06 +01:00
David Négrier
c27662c315 Merge branch 'develop' of github.com:thecodingmachine/workadventure into e2e_reconnect_tests 2021-12-06 18:07:47 +01:00
David Négrier
d7875c2c68 Adding missing handler for error message in front + removing 2 useless classes in ServerToClientMessage 2021-12-06 18:00:17 +01:00
Alexis Faizeau
2859093648
Merge pull request #1624 from thecodingmachine/linting
Add lint on Svelte files
2021-12-06 16:47:26 +01:00
David Négrier
331daca854 Fixing admin token for requests 2021-12-06 16:37:27 +01:00
Alexis Faizeau
c95e20c677 Lint & Prettier fixes on Svelte files 2021-12-06 16:36:05 +01:00
Alexis Faizeau
6cd76b9c1b Add Eslint check & Prettier on Svelte files 2021-12-06 16:10:35 +01:00
David Négrier
f6803b6d5d Fixing pusher and back url 2021-12-06 15:38:30 +01:00
David Négrier
15565c9a29 Changing pusher / back URL depending on environment 2021-12-06 15:29:24 +01:00
David Négrier
44c4b4fc34 Fixing error handling of fonts when there is no connection to front 2021-12-06 15:14:38 +01:00
David Négrier
a991f0eec9 increase timeouts (who knows....) 2021-12-06 12:04:04 +01:00
David Négrier
f5f69e7143 Fixing missing await 2021-12-06 11:35:37 +01:00
David Négrier
94762c86c5 Refactoring tests 2021-12-06 11:21:18 +01:00
David Négrier
05f805445a Adding a delay.... who knows! 2021-12-05 21:33:40 +01:00
David Négrier
a5325e9327 Improving test speed and trying to get error logs whatever happens 2021-12-05 21:24:29 +01:00
David Négrier
a5c7abe61e Enable testcafe dev mode to pinpoint testcafe errors 2021-12-05 21:21:15 +01:00
David Négrier
97460886f0 Fixing CI 2021-12-05 19:24:54 +01:00
David Négrier
a864498d16 Fixing docker-compose up linking to wrong directory when started in container 2021-12-04 23:17:07 +01:00
David Négrier
492fd2ed4e Adding retried URL in retry error logs 2021-12-04 18:30:12 +01:00
David Négrier
2cfc504e9a Adding a retry on /anonymLogin 2021-12-04 18:18:43 +01:00
David Négrier
da1687bdf2 Forcing network name to be able to use docker-compose from inside testcafe container
(otherwise, containers started inside testcafe container are not on the same network)
2021-12-04 17:23:09 +01:00
David Négrier
720370a9fa Revert "Trying restart instead in up --force-recreate to have pusher running again"
This reverts commit 3028a1b0e4.
2021-12-04 10:53:40 +01:00
David Négrier
3028a1b0e4
Trying restart instead in up --force-recreate to have pusher running again 2021-12-04 00:52:17 +01:00
David Négrier
411ee251ff Improving URL displaying of failed Axios request 2021-12-03 22:02:19 +01:00
David Négrier
487b8317e7 Adding stacktrace to error message in console 2021-12-03 21:58:08 +01:00
David Négrier
ebcfc069bc More details in the error 2021-12-03 21:45:25 +01:00
David Négrier
8b21ba5383 Improving Axios error logging 2021-12-03 20:55:46 +01:00
David Négrier
f90bd85ded Improving error reporting and adding Video reports 2021-12-03 19:54:34 +01:00
David Négrier
0c7aedb777 Setting LIVE_RELOAD=0 in CI 2021-12-03 18:41:21 +01:00
David Négrier
6427d85c24 Fixing warning in lint 2021-12-03 18:29:36 +01:00
David Négrier
0a3417e813 Adding a Docker image to have testcafe + docker-compose 2021-12-03 18:20:32 +01:00
David Négrier
936a6bfeec
Merge pull request #1621 from thecodingmachine/fix_empty_submessage
Fix sending empty variable message for users that have no right to re…
2021-12-03 17:23:04 +01:00
David Négrier
d23a64d074 Fix sending empty variable message for users that have no right to read variable
When a user had no right to read a variable and the variable changed, the user was notified nonetheless with an empty SubMessage, causing an error message in the front:

> Uncaught Error: Unexpected batch message type onmessage RoomConnection.ts:181 RoomConnection.ts:181:30 onmessage RoomConnection.ts:181

This fix closes #1613
2021-12-03 16:07:42 +01:00
David Négrier
c89afba6cd Working on more tests 2021-12-03 15:21:31 +01:00
David Négrier
78ee4009c8 Improving tests, WIP 2021-12-03 09:28:30 +01:00
David Négrier
9bba6069b4 Making LIVE_RELOAD configurable 2021-12-03 09:23:52 +01:00
David Négrier
bf830a67cb Fixing debug controller in back 2021-12-03 09:23:31 +01:00
David Négrier
7326e2a38c Mounting Docker socket in testcafe container 2021-12-01 14:37:36 +01:00
David Négrier
a3b20cf065 Installing NPM dependencies in CI for tests 2021-12-01 14:29:51 +01:00
David Négrier
fcf0888864 Adding a reconnect feature in case first Pusher request fails
Now, if the first pusher request fails, a waiting message will be displayed and the application will reconnect when the pusher comes back alive or the network connection is established again.
2021-12-01 14:14:02 +01:00
grégoire parant
9eb4206fe0
Merge pull request #1611 from thecodingmachine/master
Master
2021-11-30 18:10:36 +01:00
grégoire parant
4875a8fed9
Merge pull request #1610 from thecodingmachine/fixingQueryParamsRegisterUrl
Fixing "Query string parameters prevent WA from loading"
2021-11-30 17:45:07 +01:00
Gregoire Parant
b098b5f37d Fixing "Query string parameters prevent WA from loading"
Due to a regression, query string parameters added to the URL (like:

http://play.workadventure.localhost/_/global/maps.workadventure.localhost/starter/map.json?utm_source=sendinblue&utm_campaign=WA+-+2021+Christmap+map+launch&utm_medium=email#foo

) were causing a crash in WA.

Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com>
2021-11-30 17:29:53 +01:00
David Négrier
5e7e43732a Merge branch 'master' of github.com:thecodingmachine/workadventure into develop 2021-11-30 15:13:36 +01:00
David Négrier
7b52c13fae
Merge pull request #1609 from thecodingmachine/fix_prod_docker_compose
Adding missing environment variable in docker-compose.prod.yml
2021-11-30 15:09:52 +01:00
David Négrier
0a6d9e88bc
Merge pull request #1608 from thecodingmachine/admin_url_not_compulsory
Making the ADMIN_URL parameter optionnal in front
2021-11-30 15:06:47 +01:00
David Négrier
8205775dc9 Adding missing environment variable in docker-compose.prod.yml
In the new version, a new FRONT_URL environment variable is now compulsory in the Pusher.
This is done to setup CORS security in the pusher.

This commit adds this environment variable in the sample docker-compose.prod.yml file.
2021-11-30 15:02:52 +01:00
David Négrier
d81ecb3199 Making the ADMIN_URL parameter optionnal in front
This parameter is only used in the SAAS version (and ideally, should disappear completely).
The warning message that uses the ADMIN_URL should originate from the admin itself.
2021-11-30 14:58:37 +01:00
David Négrier
986f826830
Merge pull request #1607 from thecodingmachine/fix_query_string
Fixing "Query string parameters prevent WA from loading"
2021-11-30 14:48:15 +01:00
David Négrier
06483fd586 Fixing "Query string parameters prevent WA from loading"
Due to a regression, query string parameters added to the URL (like:

http://play.workadventure.localhost/_/global/maps.workadventure.localhost/starter/map.json?utm_source=sendinblue&utm_campaign=WA+-+2021+Christmap+map+launch&utm_medium=email#foo

) were causing a crash in WA.

This commit fixes the issue (and adds a E2E test)
2021-11-30 14:34:43 +01:00