mirror of
https://github.com/suitenumerique/docs.git
synced 2026-04-25 17:15:01 +02:00
✅(e2e) e2e instances compatibility
We want to be able to run our e2e tests on any instance of Docs, to do so we need to make some adjustments to our tests and configuration. We will use environment variables to configure the tests.
This commit is contained in:
@@ -9,6 +9,7 @@ and this project adheres to
|
||||
### Added
|
||||
|
||||
- 🚸(frontend) allow opening "@page" links with ctrl/command/middle-mouse click
|
||||
- ✅ E2E - Any instance friendly #2142
|
||||
|
||||
## [v4.8.5] - 2026-04-03
|
||||
|
||||
|
||||
22
src/frontend/apps/e2e/.env
Normal file
22
src/frontend/apps/e2e/.env
Normal file
@@ -0,0 +1,22 @@
|
||||
PORT=3000
|
||||
BASE_URL=http://localhost:3000
|
||||
BASE_API_URL=http://localhost:8071/api/v1.0
|
||||
COLLABORATION_WS_URL=ws://localhost:4444/collaboration/ws/
|
||||
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY=true
|
||||
MEDIA_BASE_URL=http://localhost:8083
|
||||
CUSTOM_SIGN_IN=false
|
||||
IS_INSTANCE=false
|
||||
SIGN_IN_EL_LOGIN_PAGE='.login-pf #kc-header-wrapper'
|
||||
SIGN_IN_EL_TRIGGER=Start Writing
|
||||
FIRST_NAME=E2E
|
||||
SIGN_IN_USERNAME_CHROMIUM=user.test@chromium.test
|
||||
USERNAME_CHROMIUM=E2E Chromium
|
||||
SIGN_IN_USERNAME_WEBKIT=user.test@webkit.test
|
||||
USERNAME_WEBKIT=E2E Webkit
|
||||
SIGN_IN_USERNAME_FIREFOX=user.test@firefox.test
|
||||
USERNAME_FIREFOX=E2E Firefox
|
||||
# To test server to server API calls
|
||||
SERVER_TO_SERVER_API_TOKENS='server-api-token'
|
||||
SUB_CHROMIUM=user.test@chromium.test
|
||||
SUB_WEBKIT=user.test@webkit.test
|
||||
SUB_FIREFOX=user.test@firefox.test
|
||||
29
src/frontend/apps/e2e/.env.example
Normal file
29
src/frontend/apps/e2e/.env.example
Normal file
@@ -0,0 +1,29 @@
|
||||
PORT=3000
|
||||
BASE_URL=http://localhost:3000
|
||||
BASE_API_URL=http://localhost:8071/api/v1.0
|
||||
COLLABORATION_WS_URL=ws://localhost:4444/collaboration/ws/
|
||||
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY=true
|
||||
MEDIA_BASE_URL=http://localhost:8083
|
||||
IS_INSTANCE=false
|
||||
CUSTOM_SIGN_IN=false
|
||||
SIGN_IN_EL_LOGIN_PAGE='.login-pf #kc-header-wrapper'
|
||||
SIGN_IN_EL_TRIGGER=Start Writing
|
||||
FIRST_NAME=E2E
|
||||
SIGN_IN_USERNAME_CHROMIUM=user.test@chromium.test
|
||||
USERNAME_CHROMIUM=E2E Chromium
|
||||
SIGN_IN_USERNAME_WEBKIT=user.test@webkit.test
|
||||
USERNAME_WEBKIT=E2E Webkit
|
||||
SIGN_IN_USERNAME_FIREFOX=user.test@firefox.test
|
||||
USERNAME_FIREFOX=E2E Firefox
|
||||
# Used only on instance with custom sign in
|
||||
SIGN_IN_EL_USERNAME_INPUT=
|
||||
SIGN_IN_EL_USERNAME_VALIDATION=
|
||||
SIGN_IN_EL_PASSWORD_INPUT=
|
||||
SIGN_IN_PASSWORD_CHROMIUM=
|
||||
SIGN_IN_PASSWORD_WEBKIT=
|
||||
SIGN_IN_PASSWORD_FIREFOX=
|
||||
# To test server to server API calls
|
||||
SERVER_TO_SERVER_API_TOKENS='server-api-token'
|
||||
SUB_CHROMIUM=user.test@chromium.test
|
||||
SUB_WEBKIT=user.test@webkit.test
|
||||
SUB_FIREFOX=user.test@firefox.test
|
||||
1
src/frontend/apps/e2e/.gitignore
vendored
1
src/frontend/apps/e2e/.gitignore
vendored
@@ -5,3 +5,4 @@ blob-report/
|
||||
playwright/.auth/
|
||||
playwright/.cache/
|
||||
screenshots/
|
||||
.env.local
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -192,10 +192,10 @@ endobj
|
||||
(react-pdf)
|
||||
endobj
|
||||
55 0 obj
|
||||
(D:20260210135720Z)
|
||||
(D:20260403132357Z)
|
||||
endobj
|
||||
56 0 obj
|
||||
(chromium-4728-0-doc-export-override-content)
|
||||
(chromium-8651-0-doc-export-override-content)
|
||||
endobj
|
||||
52 0 obj
|
||||
<<
|
||||
@@ -216,7 +216,7 @@ endobj
|
||||
58 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /XWNEXS+Inter18pt-Regular
|
||||
/FontName /VIBRRZ+Inter18pt-Regular
|
||||
/Flags 4
|
||||
/FontBBox [-742.1875 -323.242187 2579.589844 1109.375]
|
||||
/ItalicAngle 0
|
||||
@@ -232,7 +232,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /CIDFontType2
|
||||
/BaseFont /XWNEXS+Inter18pt-Regular
|
||||
/BaseFont /VIBRRZ+Inter18pt-Regular
|
||||
/CIDSystemInfo <<
|
||||
/Registry (Adobe)
|
||||
/Ordering (Identity)
|
||||
@@ -247,7 +247,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type0
|
||||
/BaseFont /XWNEXS+Inter18pt-Regular
|
||||
/BaseFont /VIBRRZ+Inter18pt-Regular
|
||||
/Encoding /Identity-H
|
||||
/DescendantFonts [59 0 R]
|
||||
/ToUnicode 60 0 R
|
||||
@@ -256,7 +256,7 @@ endobj
|
||||
62 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /QGXPNV+Inter18pt-Bold
|
||||
/FontName /TDKMKH+Inter18pt-Bold
|
||||
/Flags 4
|
||||
/FontBBox [-790.527344 -334.472656 2580.566406 1114.746094]
|
||||
/ItalicAngle 0
|
||||
@@ -272,7 +272,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /CIDFontType2
|
||||
/BaseFont /QGXPNV+Inter18pt-Bold
|
||||
/BaseFont /TDKMKH+Inter18pt-Bold
|
||||
/CIDSystemInfo <<
|
||||
/Registry (Adobe)
|
||||
/Ordering (Identity)
|
||||
@@ -287,7 +287,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type0
|
||||
/BaseFont /QGXPNV+Inter18pt-Bold
|
||||
/BaseFont /TDKMKH+Inter18pt-Bold
|
||||
/Encoding /Identity-H
|
||||
/DescendantFonts [63 0 R]
|
||||
/ToUnicode 64 0 R
|
||||
@@ -296,7 +296,7 @@ endobj
|
||||
66 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /SLYFFZ+Inter18pt-Italic
|
||||
/FontName /JYBWBW+Inter18pt-Italic
|
||||
/Flags 68
|
||||
/FontBBox [-747.558594 -323.242187 2595.703125 1109.375]
|
||||
/ItalicAngle -9.398804
|
||||
@@ -312,7 +312,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /CIDFontType2
|
||||
/BaseFont /SLYFFZ+Inter18pt-Italic
|
||||
/BaseFont /JYBWBW+Inter18pt-Italic
|
||||
/CIDSystemInfo <<
|
||||
/Registry (Adobe)
|
||||
/Ordering (Identity)
|
||||
@@ -327,7 +327,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type0
|
||||
/BaseFont /SLYFFZ+Inter18pt-Italic
|
||||
/BaseFont /JYBWBW+Inter18pt-Italic
|
||||
/Encoding /Identity-H
|
||||
/DescendantFonts [67 0 R]
|
||||
/ToUnicode 68 0 R
|
||||
@@ -336,7 +336,7 @@ endobj
|
||||
70 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /GPERZO+GeistMono-Regular
|
||||
/FontName /DLRHPN+GeistMono-Regular
|
||||
/Flags 5
|
||||
/FontBBox [-1738 -247 654 1012]
|
||||
/ItalicAngle 0
|
||||
@@ -352,7 +352,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /CIDFontType2
|
||||
/BaseFont /GPERZO+GeistMono-Regular
|
||||
/BaseFont /DLRHPN+GeistMono-Regular
|
||||
/CIDSystemInfo <<
|
||||
/Registry (Adobe)
|
||||
/Ordering (Identity)
|
||||
@@ -367,7 +367,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type0
|
||||
/BaseFont /GPERZO+GeistMono-Regular
|
||||
/BaseFont /DLRHPN+GeistMono-Regular
|
||||
/Encoding /Identity-H
|
||||
/DescendantFonts [71 0 R]
|
||||
/ToUnicode 72 0 R
|
||||
@@ -376,7 +376,7 @@ endobj
|
||||
74 0 obj
|
||||
<<
|
||||
/Type /FontDescriptor
|
||||
/FontName /CNJFYA+Inter18pt-BoldItalic
|
||||
/FontName /LHWXUO+Inter18pt-BoldItalic
|
||||
/Flags 68
|
||||
/FontBBox [-795.898437 -334.472656 2596.191406 1114.746094]
|
||||
/ItalicAngle -9.398804
|
||||
@@ -392,7 +392,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /CIDFontType2
|
||||
/BaseFont /CNJFYA+Inter18pt-BoldItalic
|
||||
/BaseFont /LHWXUO+Inter18pt-BoldItalic
|
||||
/CIDSystemInfo <<
|
||||
/Registry (Adobe)
|
||||
/Ordering (Identity)
|
||||
@@ -407,7 +407,7 @@ endobj
|
||||
<<
|
||||
/Type /Font
|
||||
/Subtype /Type0
|
||||
/BaseFont /CNJFYA+Inter18pt-BoldItalic
|
||||
/BaseFont /LHWXUO+Inter18pt-BoldItalic
|
||||
/Encoding /Identity-H
|
||||
/DescendantFonts [75 0 R]
|
||||
/ToUnicode 76 0 R
|
||||
@@ -709,32 +709,34 @@ endstream
|
||||
endobj
|
||||
15 0 obj
|
||||
<<
|
||||
/Length 5425
|
||||
/Length 5410
|
||||
/Filter /FlateDecode
|
||||
>>
|
||||
stream
|
||||
xœí][<5B>㸱~ï_á?Ð
|
||||
oâXôC²'Áž‡ | ||||