We currently use yarn 4.3.1 for running the Playwright tests, but the newest yarn version in npm is 1.22.22. We need to enable corepack to be able to download and use yarn 4.3.1 to run the Playwright tests. In yarn v4, using corepack is considered best practice instead of including yarn binary in repo (https://yarnpkg.com/blog/release/4.0).
Related Issue(s)
323
Verification
[ ] Your code builds clean without any errors or warnings
[ ] Manual testing done (required)
[ ] Relevant automated test added (if you find this hard, leave it and we'll help out)
[ ] All tests run green
Documentation
[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)
Description
We currently use yarn 4.3.1 for running the Playwright tests, but the newest yarn version in npm is 1.22.22. We need to enable corepack to be able to download and use yarn 4.3.1 to run the Playwright tests. In yarn v4, using corepack is considered best practice instead of including yarn binary in repo (https://yarnpkg.com/blog/release/4.0).
Related Issue(s)
323
Verification
Documentation