Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfaraazkhan committed Jul 27, 2023
1 parent b0774d6 commit 7edfa70
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/e2e-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Desktop Install nodejs dependencies
run: npm ci

- name: Set Environment Variables
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
Expand Down Expand Up @@ -79,17 +82,12 @@ jobs:
repository: mattermost/mattermost
path: mattermost

- name: Run mattermsot server
- name: Run mattermsot server & Playwright tests (Ubuntu OS)
run: |
cd mattermost/e2e-tests
echo "SERVER_IMAGE=mattermost/mattermost-enterprise-edition:release-8.0" >.ci/env
make start-server && make prepare-server
- name: Desktop Install nodejs dependencies
run: npm ci

- name: Run Playwright tests (Ubuntu OS)
run: |
cd ../..
export DISPLAY=:99
Xvfb $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 &
npm run test:e2e || true # making job pass even if the tests fail due to flakyness
Expand Down

0 comments on commit 7edfa70

Please sign in to comment.