Commit Graph

55 Commits

Author SHA1 Message Date
David Négrier
caf8a74ade Adding test to check custom menus 2022-04-26 18:06:07 +02:00
David Négrier
ed1efe12f2 Adding an additional E2E test regarding iFrames and scripts 2022-04-26 18:06:07 +02:00
Piotr Hanusiak
bb3f52df37
New select woka scene (#1997)
* animated grid tiles
* change woka's category with arrow buttons
* added some dynamic effects to woka's list
* add some drag distance treshold
* do not show arrows if only one collection
* WSAD and arrow keys movement through WOKA models
* Adapting end to end tests

Co-authored-by: Piotr 'pwh' Hanusiak <p.hanusiak@workadventu.re>
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
2022-04-22 17:56:28 +02:00
David Négrier
e93d6923c2 Adding a bigger timeout in one E2E test 2022-04-22 16:49:03 +02:00
David Négrier
6920836e47 Merge branch 'master' of github.com:thecodingmachine/workadventure into develop 2022-04-13 15:12:06 +02:00
David Négrier
7968c4ad7b
Upgrading playwright to 1.21 (#2084)
* Upgrading playwright to 1.21

Also, locking CI to install 1.21 (just like package.json is using).
This way, on the next Playwright release, CI will continue working.

* Running npx install playwright from the tests directory so that playwright can install the correct browsers
2022-04-13 14:33:30 +02:00
dependabot[bot]
ea4d367f4f Bump minimist from 1.2.5 to 1.2.6 in /tests
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 15:19:48 +02:00
Valdo
6d9a3f45dc
Allow audio (#1991)
* Removing old unused images

Just a bit of cleanup!

* Allow audio feature

* Pretty

* Ignored screenshot folder

* Added manual test

* Simplified test map

Co-authored-by: Valdo Romao <v.romao@thecodingmachine.com>
2022-03-21 16:22:51 +01:00
David Négrier
2d3e2805a1 Upgrading playwright version to latest 2022-03-18 18:32:23 +01:00
David Négrier
d3862a3afd
Better e2e tests (#1959)
* Adding a timeout to wait for old map to be correctly loaded

* Adding an exception for E2E tests to load a local map as if it was remote.
2022-03-11 10:29:42 +01:00
Lukas
2938aba484
Multi-platform images (#1924)
* base front production image on official nginx

* build multi-platform docker images

* build message types outside docker

* set docker build context to path

* build message types before running e2e tests

* add build for arm/v7

* remove build for arm/v7

* increase yarn network timeout

* set front port to 80

* add git labels to images

https://github.com/docker/build-push-action/blob/master/UPGRADE.md#tags-with-ref-and-git-labels

* add images input

* Adding back commented code in the Dockerfile (the protobuf message building).

This way, when node-grpc supports ARM64, we can uncomment the code again.

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
Co-authored-by: Lukas Hass @lukashass
2022-03-08 11:21:17 +01:00
Lukas Hass
4eca2cbfaa
load ADMIN_API_TOKEN with dotenv-cli 2022-02-18 16:37:50 +01:00
Lukas Hass
ed0e49d16e
update docs and remove references to testcafe 2022-02-18 16:11:26 +01:00
Lukas Hass
3d86204db6
add page type 2022-02-18 15:43:06 +01:00
Lukas Hass
cf6204f0db
increase log retrieval timeout 2022-02-18 15:41:02 +01:00
Lukas Hass
b1c7e01008
add playwright and run e2e tests on production like environment 2022-02-18 14:40:20 +01:00
dependabot[bot]
73e20c3a24
Bump follow-redirects from 1.14.7 to 1.14.8 in /tests
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 17:46:49 +00:00
Alexis Faizeau
446b4639c7 Implement typesafe-i18n 2022-01-24 18:59:28 +01:00
David Négrier
0be77164ec Translating retry connection error message and fixing E2E tests 2022-01-21 17:09:29 +01:00
David Négrier
4dac3d0100 Update testcafe 2022-01-19 21:15:36 +01:00
David Négrier
35e44a92b9 Updating Dockerfile testcafe version 2022-01-19 21:11:35 +01:00
David Négrier
ca6fdb9025 Trying to make E2E tests more stable 2022-01-19 21:11:35 +01:00
David Négrier
9425fd70c0 Adding a new property to prevent script from being loaded in "modules" mode
Scripts in module mode need to be abide by the Same Origin Policy (CORS headers are used to load them)
This can cause issues on some setups.

This commit adds a new "scriptDisableModuleSupport" that can be used to disable the "modules" mode.

Closes #1721
2022-01-12 17:36:31 +01:00
David Négrier
f3ebeef4a7 Fixing doc 2021-12-24 16:45:51 +01:00
David Négrier
a82a5caec8 Upgrading testcafe to 1.18.0 2021-12-23 11:46:39 +01:00
David Négrier
331daca854 Fixing admin token for requests 2021-12-06 16:37:27 +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
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
a864498d16 Fixing docker-compose up linking to wrong directory when started in container 2021-12-04 23:17:07 +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
f90bd85ded Improving error reporting and adding Video reports 2021-12-03 19:54:34 +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
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
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
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
David Négrier
eac4bb2875 Refactoring test cafe tests
- Using "Roles" to log users
- Adding seemingly useless import statement but important for code completion
2021-11-28 16:43:12 +01:00
David Négrier
dfad0a7b57 Removing useless wait 2021-11-24 12:03:48 +01:00
David Négrier
7c2bf8700b Fixing test 2021-11-24 11:50:23 +01:00
David Négrier
8eb346de25 Displaying logs in case of error 2021-11-24 10:58:26 +01:00
David Négrier
7ef6431b64 More CI debug 2021-11-24 10:21:35 +01:00
David Négrier
963486b663 Adding code to post screenshots of failed tests 2021-11-24 09:26:54 +01:00