From fc078cf6e621ebcf90e5cb48d14d0ded7137f956 Mon Sep 17 00:00:00 2001 From: junkisai Date: Thu, 21 Dec 2023 22:41:05 +0900 Subject: [PATCH] docs: replace postRender(deprecated) with postVisit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f70dc7b..d2ea9905 100644 --- a/README.md +++ b/README.md @@ -753,7 +753,7 @@ You can access its context in a test hook like so: import { TestRunnerConfig, getStoryContext } from '@storybook/test-runner'; const config: TestRunnerConfig = { - async postRender(page, context) { + async postVisit(page, context) { // Get entire context of a story, including parameters, args, argTypes, etc. const storyContext = await getStoryContext(page, context); if (storyContext.parameters.theme === 'dark') { @@ -777,7 +777,7 @@ The `waitForPageReady` utility is useful when you're executing [image snapshot t import { TestRunnerConfig, waitForPageReady } from '@storybook/test-runner'; const config: TestRunnerConfig = { - async postRender(page, context) { + async postVisit(page, context) { // use the test-runner utility to wait for fonts to load, etc. await waitForPageReady(page);