Playwright tests to confirm Galaxy is functioning as expected after deployment.
The tests
directory contains a number of Playwright test scripts that will eventually (likely) be combined into a single, end-to-end, test that:
- Launches a new Galaxy instance on the Terra production server.
- Performs several simple tests to confirm Galaxy is operational:
- Create, rename, and delete a history.
- Upload data by pasting text into the upload dialog.
- Uploads two data file and runs the
fastp
tool. - Uploads two data files, a reference genome, and a variant calling workflow and runs the workflow.
- Shuts down the Galaxy instance leaving the disks intact.
- Launches a new Galaxy instance and ensure previous data is still present.
- Shuts down the Galaxy instance and deleting the existing disks.
The test files can be grouped into two categories: tests that target the Terra UI (e.g. launch Galaxy), and tests that target Galaxy (e.g. running tools).
The test files that target Terra functionality are:
login.spec.ts
performs the login flow to authenticate with a Google account.launch.spec.ts
launches a Galaxy instance with the default configuration.open.spec.ts
opens Galaxy in a new browser tabpause.spec.ts
deletes the Galaxy instance but leaves the disks intact.shutdown.spec.ts
deletes the Galaxy instance and persistent disks.
The test files that target Galaxy functionality:
history.spec.ts
create, rename, and delete a historypaste.spec.ts
upload text by pasting into the upload dialogfastp.spec.ts
upload two datasets and run thefastp
toolvariant.spec.ts
[WIP] upload datasets, a workflow, and runs the workflow
There are also two "tests", that are used for administrative purposes.
auth.setup.ts
Run this test in headed mode to save the security context to.auth/user.json
. Update the GitHub secretUSER_JSON
to enable the test user account to authenticate without triggering two-factor authentication.cleanup.spec.ts
Delete disks that sometimes linger.