fix: fixed overflow of texts for components in utforming page (#14216) #792
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests in Staging | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/playwright.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
playwright-run: | |
name: 'Playwright Tests' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checking Out Code' | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
- name: Get yarn cache directory path | |
working-directory: frontend | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Attempt to wait for deploy to environment (15 minutes sleep) | |
run: | | |
if [ "${{ github.run_attempt }}" != "1" ]; then | |
echo "Skip waiting for deploy, since this is a re-run of the pipeline." | |
else | |
sleep 15m | |
fi | |
- name: Playwright run | |
working-directory: frontend/testing/playwright | |
env: | |
PLAYWRIGHT_TEST_BASE_URL: 'https://staging.altinn.studio' | |
PLAYWRIGHT_USER: 'AutoTest' | |
PLAYWRIGHT_PASS: ${{ secrets.AUTO_TEST_USER_PWD }} | |
GITEA_ACCESS_TOKEN: ${{ secrets.AUTO_TEST_USER_TOKEN_STAGING }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn | |
yarn install --immutable --inline-builds | |
yarn playwright install --with-deps | |
yarn playwright:test:all | |
- name: Store artifacts | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: playwright-screenshots | |
path: frontend/testing/playwright/test-results |