From d58c14570c6aff89143aa785190b8d708067c693 Mon Sep 17 00:00:00 2001 From: kan-pawes Date: Wed, 27 Nov 2024 14:59:27 +0100 Subject: [PATCH] fix README.md about generation of aria snapshots --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 093e115..0da163f 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,9 @@ to install Playwright's browsers on your machine (this needs to be done only onc ## Aria snapshots -To create new aria snapshot use `npm run uitest-codegen` and use Aria tab from the bottom toolbar +To create new aria snapshot use `npm run uitest-codegen`, then navigate to your page +and use "Assert snapshot" from the top toolbar. It will generate a test script that you can +copy-paste. (read more about Playwright's Codegen [here](https://playwright.dev/docs/codegen-intro)) To update all snapshot use `npx playwright test --update-snapshots`