use node's native fetch, add ensureLicense flag and update snapshots (#28279)

Этот коммит содержится в:
Saturnino Abril
2024-09-23 21:11:45 +08:00
коммит произвёл GitHub
родитель 343746c4b6
Коммит 073e2cecaa
23 изменённых файлов: 109 добавлений и 309 удалений

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

@@ -15,8 +15,6 @@ cd server && make run-server
#### 2. Install dependencies and run the test.
Note: If you're using Node.js version 18 and above, you may need to set `NODE_OPTIONS='--no-experimental-fetch'`.
```
# Install npm packages
npm i
@@ -51,7 +49,6 @@ docker run -it --rm -v "$(pwd):/mattermost/" --ipc=host mcr.microsoft.com/playwr
#### 2. Inside the docker container
```
export NODE_OPTIONS='--no-experimental-fetch'
export PW_BASE_URL=http://host.docker.internal:8065
export PW_HEADLESS=true
cd mattermost/e2e-tests/playwright