/tutorial-testing-demo

E2E tutorial testing demo

Primary LanguageTypeScript

Tutorial Testing Demo

This website is built using Docusaurus, a modern static website generator.

It serves as a demonstration of how you can create an end-to-end test for a tutorial using Playwright.

Running Locally

Installation

To run the project locally, make sure you have pnpm installed.

Then, install the dependencies in the project folder with:

pnpm install

Testing the tutorial

To run the end-to-end test for the tutorial, you can run:

pnpm test

This will run the Playwright test in tests/example.spec.ts, which in turn will execute all of the steps in <span> elements in docs/intro.md.

Once the test is completed, you should see a folder called tests-output where the tutorial project output files will be.

Local Development

To run the docusarus site where the tutorial is located, you can run:

pnpm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.