Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import SimplePlaywright from "../../workflows/simple-playwright-workflow.md" import SimplePlaywrightFromTemplate from "../../workflows/simple-playwright-workflow-from-template.md"

Basic Playwright Framework Example

Below is a basic workflow for executing a Playwright project which is available on GitHub. You can paste this directly into the YAML of an existing or new test, just make sure to update the name and namespace for your environment if needed.

  • The spec.content property defines the location of the GitHub project
  • The spec.steps property defines a single step that runs the test and uploads the created reports, including the generated trace report.

After execution, you can see the output from the test executions under the executions panel tabs:

The log output from the Playwright Framework execution:

Playwright Framework Log Output

The uploaded report is available in the Artifacts tab:

Playwright Framework Artifacts

Clicking the HTML report opens it in your browser:

Playwright Framework Overview Report

Clicking a specific test shows that tests details, including a link to the trace report.

Playwright Framework Test Report

Clicking the trace opens the Playwright Trace UI

Playwright Framework Trace Viewer

Basic Playwright from Template

Below is an example workflow for executing the Playwright project using an official Testkube Template.