Skip to content

Commit 2521f5e

Browse files
Backport PR #16587: Fix galata docs on overriding tmpPath (#16591)
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
1 parent ae76e70 commit 2521f5e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

galata/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -536,16 +536,16 @@ Example:
536536
test.use({ tmpPath: 'test-toc' });
537537

538538
test.describe.serial('Table of Contents', () => {
539-
test.beforeAll(async ({ baseURL, tmpPath }) => {
540-
const contents = galata.newContentsHelper(baseURL);
539+
test.beforeAll(async ({ request, tmpPath }) => {
540+
const contents = galata.newContentsHelper(request);
541541
await contents.uploadFile(
542542
path.resolve(__dirname, `./notebooks/${fileName}`),
543543
`${tmpPath}/${fileName}`
544544
);
545545
});
546546

547-
test.afterAll(async ({ baseURL, tmpPath }) => {
548-
const contents = galata.newContentsHelper(baseURL);
547+
test.afterAll(async ({ request, tmpPath }) => {
548+
const contents = galata.newContentsHelper(request);
549549
await contents.deleteDirectory(tmpPath);
550550
});
551551
});

0 commit comments

Comments
 (0)