Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Playwright UI test framework to datagov-harvester #4811

Open
3 tasks
btylerburton opened this issue Jul 10, 2024 · 2 comments
Open
3 tasks

Add Playwright UI test framework to datagov-harvester #4811

btylerburton opened this issue Jul 10, 2024 · 2 comments
Labels
H2.0/Harvest-Flask Front-end webapp & APIs

Comments

@btylerburton
Copy link
Contributor

User Story

In order to ensure reliable end-to-end testing, datagovteam wants to incorporate an end-to-end testing framework, and Playwright is an alternative to Cypress so tests can be written in Python.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN I have configured Playwright in the datagov-harvester
    WHEN I invoke the test runner
    THEN I expect to see results from valid E2E tests

Background

Playwright includes direct integration with pytest: https://playwright.dev/python/docs/intro#installing-playwright-pytest

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • Integrate playwright with pytest
  • Write some tests of UI library
@btylerburton btylerburton added the H2.0/Harvest-Flask Front-end webapp & APIs label Jul 10, 2024
@jbrown-xentity jbrown-xentity moved this to H2.0 Backlog in data.gov team board Jul 11, 2024
@jbrown-xentity jbrown-xentity moved this from H2.0 Backlog to 📟 Sprint Backlog [7] in data.gov team board Jul 11, 2024
@jbrown-xentity jbrown-xentity moved this from 📟 Sprint Backlog [7] to H2.0 Backlog in data.gov team board Jul 11, 2024
@btylerburton btylerburton moved this from H2.0 Backlog to 📥 Queue in data.gov team board Oct 10, 2024
@rshewitt
Copy link
Contributor

rshewitt commented Feb 5, 2025

/harvest_job/ route doesn't work. forgot i found this. I figure this ticket would include tests against all routes. maybe this isn't the right place to put it but i want to mention it.

@rshewitt rshewitt self-assigned this Feb 11, 2025
@rshewitt rshewitt moved this from 📥 Queue to 🏗 In Progress [8] in data.gov team board Feb 11, 2025
@rshewitt
Copy link
Contributor

rshewitt commented Feb 11, 2025

appears there isn't a formal playwright python config file compared to ts/js but there's a feature ticket for it which encourages configuring via pytest.ini file. usage doc does the same thing. looks like pytest can be configured in pyproject.toml. pytest config options

@rshewitt rshewitt moved this from 🏗 In Progress [8] to 📥 Queue in data.gov team board Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-Flask Front-end webapp & APIs
Projects
Status: 📥 Queue
Development

No branches or pull requests

2 participants