From a99f032bcc3318f863cdaef07c9ac58fe264d022 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 5 Nov 2024 08:26:05 +0100 Subject: [PATCH] update comment --- tests/playwright-test/global-setup.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/global-setup.spec.ts b/tests/playwright-test/global-setup.spec.ts index 47f44b8d5e..cde7a97194 100644 --- a/tests/playwright-test/global-setup.spec.ts +++ b/tests/playwright-test/global-setup.spec.ts @@ -410,8 +410,8 @@ test('globalSetup should support multiple', async ({ runInlineTest }) => { }, { reporter: 'line' }); expect(result.passed).toBe(2); - // behaviour: setups in order, teardowns in reverse order. - // setup-returned functions inherit their position, and take precedence over `globalTeardown` scripts. + // first setups, then setup callbacks in reverse order. + // then teardowns in declared order. expect(result.outputLines).toEqual([ 'globalSetup1', 'globalSetup2',