How to test dynamic content in Playwright with API mocking

Опубликовано: 16 Октябрь 2024
на канале: Playwright
6,576
182

In this video lets take a look at how you can test dynamic content that comes from an API by mocking a part of the API call. The demo uses UI mode to show how the test is set up and VS Code to modify the average votes of a movie to see the test failing and passing and see the response from the API and from the mocked response.

#playwright #testing

00:00 - Intro
01:24 - Source code for API mocking
03:55 - Network tab in UI mode

#playwright #testing