Skip to content

Commit

Permalink
fix: incorrect script type
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexxa committed May 8, 2024
1 parent 8335c9d commit deedb13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
parentId: null
modified: 1707808692801
created: 1707808692801
name: Pre-request Scripts
name: Post-request Scripts
description: ""
scope: collection
_type: workspace
Expand All @@ -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');
Expand Down Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit deedb13

Please sign in to comment.