Skip to content

Base setup for Playwright tests #1255

Closed
Janni2006 wants to merge 10000 commits intoopencast:developfrom
Janni2006:UI-tests
Closed

Base setup for Playwright tests #1255
Janni2006 wants to merge 10000 commits intoopencast:developfrom
Janni2006:UI-tests

Conversation

@Janni2006
Copy link
Copy Markdown
Contributor

This pull request introduces end-to-end testing for the frontend using Playwright as mentiones in #446.

Playwright Setup and Configuration:

  • Added a GitHub Actions workflow (.github/workflows/playwright.yml) to run Playwright tests on push and pull request events, including steps for installing dependencies, setting up browsers, and uploading test reports.
  • Created playwright.config.ts to configure Playwright with parallel test execution, browser projects (Chromium, Firefox, WebKit), and a local development server for testing.

Project Updates:

  • Updated package.json to include Playwright as a development dependency (@playwright/test) and added new scripts for running Playwright tests (test:e2e and test:e2e:headless).

Test Implementation:

  • Added a sample test suite in webtests/header.spec.ts to verify the visibility of header elements and functionality of the language dropdown.

Documentation:

  • Added webtests/writing_tests.md to provide an overview of Playwright, instructions for running tests locally, and references to official Playwright documentation.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:conflicts type:enhancement New feature or request type:infrastructure Build process, deployment, workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.