{"id":28429764,"url":"https://github.com/appsilon/pyshiny-e2e-playwright","last_synced_at":"2025-07-03T05:01:56.550Z","repository":{"id":232579556,"uuid":"773940916","full_name":"Appsilon/pyshiny-e2e-playwright","owner":"Appsilon","description":"Code demo to accompany blogpost on PyShiny apps Validation/Quality Assurance/Testing","archived":false,"fork":false,"pushed_at":"2024-04-10T10:13:27.000Z","size":150,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-06-05T13:48:08.986Z","etag":null,"topics":["playwright-python","pyshiny-core"],"latest_commit_sha":null,"homepage":"https://appsilon.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Appsilon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-18T17:02:30.000Z","updated_at":"2025-01-07T02:14:03.000Z","dependencies_parsed_at":"2024-04-10T12:39:24.703Z","dependency_job_id":null,"html_url":"https://github.com/Appsilon/pyshiny-e2e-playwright","commit_stats":null,"previous_names":["appsilon/pyshiny-e2e-playwright"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Appsilon/pyshiny-e2e-playwright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsilon%2Fpyshiny-e2e-playwright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsilon%2Fpyshiny-e2e-playwright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsilon%2Fpyshiny-e2e-playwright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsilon%2Fpyshiny-e2e-playwright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Appsilon","download_url":"https://codeload.github.com/Appsilon/pyshiny-e2e-playwright/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Appsilon%2Fpyshiny-e2e-playwright/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264642,"owners_count":23439247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["playwright-python","pyshiny-core"],"created_at":"2025-06-05T13:39:05.622Z","updated_at":"2025-07-03T05:01:56.531Z","avatar_url":"https://github.com/Appsilon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyShiny E2E Testing with Playwright\n\n\u003ca href=\"https://www.appsilon.com/\"\u003e\u003cimg src=\"images/appsilon_logo.png\" width=\"200\"\u003e\u003c/a\u003e\n\nThis project demonstrates end-to-end (E2E) testing of a [PyShiny](https://shiny.posit.co/py/) application using [Playwright](https://playwright.dev/python/). It aims to provide a practical example of how to automate testing for a Python-based web app, covering UI interactions and verifying functionality.\n\n![App Screenshot](images/app_screenshot.png)\n\n## Features\n\n- Demonstrates usage of Playwright with PyShiny.\n- Shows how to test easily available UI components like radio buttons.\n- And how to test components that require javascript to interact with, like sliders.\n- Includes examples of parameterized tests.\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.10+\n- Poetry for dependency management\n\n### Installation\n\n1. **Clone the repository:**\n\n```bash\ngit clone https://github.com/Appsilon/pyshiny-e2e-playwright.git\ncd pyshiny-e2e-playwright\n```\n\n2. **Install dependencies using Poetry:**\n\n```bash\npoetry install\npoetry run playwright install\n```\n\nThese commands will create a virtual environment and install all required dependencies.\n\n### Running the Application\n\nTo start the PyShiny app:\n\n```bash\npoetry run shiny run app.py\n```\n\nEnsure the app is running at `http://localhost:8000` (or your configured port).\n\n### Running Tests\n\nTo execute the E2E tests with Playwright:\n\n```bash\npoetry run pytest\n```\n\nMake sure your app is running before executing the tests as they require the app to be accessible.\n\n## Contact\n\nAppsilon | [appsilon.com](https://appsilon.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsilon%2Fpyshiny-e2e-playwright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsilon%2Fpyshiny-e2e-playwright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsilon%2Fpyshiny-e2e-playwright/lists"}