Pipelines for UI tests: run on push, save screenshots, videos and reports
Run Selenium or Cypress tests in GitHub Actions on every push, keep screenshots, videos and test reports as artifacts even when tests fail, and read them to find …
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a shop camera that wipes the tape at closing. The camera records all day. At closing, the tape is erased unless someone saved a copy. The day you need most is the day something went wrong.
The camera is the . The save button is the upload step. The bad day is a failed run.
Tom, a tester at Daily List, a to-do list app, makes the save happen by itself. Mei wants the picture without asking Tom to retest on his laptop.
What it is: This topic is one slice of GitHub Actions, a service on GitHub's website that runs commands for your project. A is a (YAML Ain't Markup Language) file that lists the steps. An artifact is a file kept with the run, and Upload on failure means the save still runs when tests are red. Jenkins can keep files too, with different buttons. The neighbour to avoid is a screenshot that exists only on Tom's laptop.
Why it matters: A red user interface (UI) run with no picture forces a slow retest. Tom uploads screenshots, videos and the report even when the tests fail. Mei can see the break from the run page. A green run with no files is fine. A red run with no files is a lost clue.
PLAIN WORDS · 2 in this section
- retest
- test again
- github
- a web site that hosts code and runs checks
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB A security camera whose footage is wiped unless saved.
- Run
- Save
- Watch
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The camera recording all day | The test run |
| Pressing save | The upload step |
| The day something went wrong | A failed run |
| The saved footage | The artifact |
WHERE THIS PICTURE STOPS
- A camera runs all day, but a pipeline runs on each push.
- Footage is one stream, but artifacts are many files.
- Footage is wiped at close, but artifacts are kept for a limited time.
HOOK
Save the footage that matters.
TELL A FRIEND
A camera: save the bad day.
OFTEN MIXED UP WITH GitHub Actions and Jenkins: run your tests on every push. That topic runs tests on every push. This one adds screenshots, videos and reports so a failure can be diagnosed.
PRACTISE AND KEEP
Sources for this topic — 3 sources
- Market practice
GitHub Actions (Cypress documentation) ↗ — Cypress · Cypress guide: the workflow file lives under the workflows folder, runs on push, uses the Cypress action and can save output with the upload-artifact action
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Testing in GitHub Actions (guide) ↗ — QA Skills · Guide: a Selenium workflow runs pytest headless on push, writes JUnit XML and uploads it as an artifact even when tests fail
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Cypress configuration ↗ — Cypress · Actual configuration updated20September2026: screenshotOnRunFailure true; manual screenshot; video false.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.