Skip to content

SR-639 / ADO 440010: Automated e2e Testing (Playwright) #71

Draft
cfoss-coveo wants to merge 1 commit into
ServiceCanada:mainfrom
cfoss-coveo:feature/440010-sr-639-playwright-for-search
Draft

SR-639 / ADO 440010: Automated e2e Testing (Playwright) #71
cfoss-coveo wants to merge 1 commit into
ServiceCanada:mainfrom
cfoss-coveo:feature/440010-sr-639-playwright-for-search

Conversation

@cfoss-coveo

Copy link
Copy Markdown
Contributor

Tasks

Description

image
  • Added Playwright tool for automated end-to-end testing
  • Initial tests for basic search and query suggestions (both incomplete)
  • README added under /e2e/README.md
  • Generated reports and debug info (/playwright-report and /test-results) excluded from version control and the Jekyll build

How to Use

  1. Start docker container:
  • docker compose up
  1. Install dependancies:
  • npm install
  • npx playwright install chromium
  1. Run tests.
  • Playwright UI:
    • Run: npm run test:ui
    • Press "Play" button (top of left column)
  • Headless (silently):
    • Run: npm run test

@Garneauma Garneauma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfoss-coveo This works well! It took quite a while to install chromium on my 10 year old macbook, but it's working as expected. What would be the next step? Adding test cases for all the remaining pages?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants