diff --git a/packages/insomnia-smoke-test/fixtures/post-request-collection.yaml b/packages/insomnia-smoke-test/fixtures/post-request-collection.yaml index a871f58a9d3..7b1fdf43df8 100644 --- a/packages/insomnia-smoke-test/fixtures/post-request-collection.yaml +++ b/packages/insomnia-smoke-test/fixtures/post-request-collection.yaml @@ -7,7 +7,7 @@ resources: parentId: null modified: 1707808692801 created: 1707808692801 - name: Pre-request Scripts + name: Post-request Scripts description: "" scope: collection _type: workspace @@ -19,7 +19,7 @@ resources: name: tests with expect and test description: "" method: POST - preRequestScript: |- + postRequestScript: |- insomnia.test('happy tests', () => { insomnia.expect(200).to.eql(200); insomnia.expect('uname').to.be.a('string'); @@ -66,7 +66,7 @@ resources: name: persist environments description: "" method: POST - preRequestScript: |- + postRequestScript: |- insomnia.environment.set('__fromPostScript', 'environment'); insomnia.baseEnvironment.set('__fromPostScript1', 'baseEnvironment'); insomnia.collectionVariables.set('__fromPostScript2', 'collection'); diff --git a/packages/insomnia-smoke-test/tests/smoke/post-request-script-features.test.ts b/packages/insomnia-smoke-test/tests/smoke/post-request-script-features.test.ts index f85ef04ded5..77201efebaf 100644 --- a/packages/insomnia-smoke-test/tests/smoke/post-request-script-features.test.ts +++ b/packages/insomnia-smoke-test/tests/smoke/post-request-script-features.test.ts @@ -16,7 +16,7 @@ test.describe('post-request features tests', async () => { await page.getByRole('button', { name: 'Scan' }).click(); await page.getByRole('dialog').getByRole('button', { name: 'Import' }).click(); - await page.getByLabel('Pre-request Scripts').click(); + await page.getByLabel('Post-request Scripts').click(); }); test('insomnia.test and insomnia.expect can work together', async ({ page }) => {