E2E/Playwright: Instantiate page in pw (#29765)

* instantiate page in pw

* update spec

* fix storage key and require user when logging in via API

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Saturnino Abril
2025-01-14 12:30:42 +08:00
коммит произвёл GitHub
родитель 20e9c6aa3e
Коммит 90e3d2833e
35 изменённых файлов: 554 добавлений и 591 удалений

Просмотреть файл

@@ -41,15 +41,6 @@ export default defineConfig({
trace: 'off',
video: 'retain-on-failure',
actionTimeout: duration.half_min,
storageState: {
cookies: [],
origins: [
{
origin: testConfig.baseURL,
localStorage: [{name: '__landingPageSeen__', value: 'true'}],
},
],
},
},
projects: [
{
@@ -57,14 +48,14 @@ export default defineConfig({
use: {
browserName: 'chromium',
...devices['iPad Pro 11'],
permissions: ['notifications'],
permissions: ['notifications', 'clipboard-read', 'clipboard-write'],
},
},
{
name: 'chrome',
use: {
browserName: 'chromium',
permissions: ['notifications'],
permissions: ['notifications', 'clipboard-read', 'clipboard-write'],
viewport: {width: 1280, height: 1024},
},
},