Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test framework to test the JS part of the course #2471

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

michael-kerscher
Copy link
Collaborator

@michael-kerscher michael-kerscher commented Nov 25, 2024

This is a first draft for a test framework for testing the JS part of the book that is discussed in #2462

It is using webdriverIO and the webdriverIO Expect API in combination with Mocha. WebdriverIO is taking care of accessing the webpage with a real browser and can access the state of the page so behavior can be asserted.

Currently only a small test for the speaker-notes implementation demos the functionality.

The Static Server Service is used to serve the book in a way that the test runner can access it.

A CI integration can look like https://webdriver.io/docs/githubactions/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant