Skip to content

Commit 7ef6780

Browse files
committed
update e2e
1 parent b0344c1 commit 7ef6780

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/insomnia-smoke-test/tests/smoke/after-response-script-features.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test.describe('after-response script features tests', async () => {
4747

4848
// verify persisted environment
4949
await page.getByRole('button', { name: 'Manage Environments' }).click();
50-
await page.getByRole('option', { name: 'Manage collection environments' }).click();
50+
await page.getByRole('button', { name: 'Manage collection environments' }).click();
5151
const responseBody = page.getByRole('dialog').getByTestId('CodeEditor').locator('.CodeMirror-line');
5252
const rows = await responseBody.allInnerTexts();
5353
const bodyJson = JSON.parse(rows.join(' '));

packages/insomnia-smoke-test/tests/smoke/environment-editor-interactions.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test.describe('Environment Editor', async () => {
1818
// Create the environment (which will become active on creation)
1919
// await page.getByLabel("Select an environment").click();
2020
await page.getByRole('button', { name: 'Manage Environments' }).click();
21-
await page.getByRole('option', { name: 'Manage collection environments' }).click();
21+
await page.getByRole('button', { name: 'Manage collection environments' }).click();
2222
await page.getByTestId('CreateEnvironmentDropdown').click();
2323
await page.getByRole('menuitemradio', { name: 'Shared Environment' }).press('Enter');
2424
await page.getByRole('row', { name: 'New Environment' }).click();
@@ -39,7 +39,7 @@ test.describe('Environment Editor', async () => {
3939
test('Rename an existing environment', async ({ page }) => {
4040
// Rename the environment
4141
await page.getByRole('button', { name: 'Manage Environments' }).click();
42-
await page.getByRole('option', { name: 'Manage collection environments' }).click();
42+
await page.getByRole('button', { name: 'Manage collection environments' }).click();
4343
await page.getByRole('row', { name: 'ExampleB' }).getByRole('button', { name: 'name' }).dblclick();
4444
await page.getByRole('row', { name: 'ExampleB' }).locator('input').fill('Gandalf');
4545
await page.getByRole('row', { name: 'ExampleB' }).locator('input').press('Enter');
@@ -61,7 +61,7 @@ test.describe('Environment Editor', async () => {
6161
test('Add new variables to an existing environment', async ({ page }) => {
6262
// Rename the environment
6363
await page.getByRole('button', { name: 'Manage Environments' }).click();
64-
await page.getByRole('option', { name: 'Manage collection environments' }).click();
64+
await page.getByRole('button', { name: 'Manage collection environments' }).click();
6565
// add a new string environment variable
6666
await page.locator('pre').filter({ hasText: '"exampleNumber": 1111,' }).click();
6767
await page.getByTestId('CodeEditor').getByRole('textbox').press('Enter');

packages/insomnia-smoke-test/tests/smoke/pre-request-script-features.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ test.describe('pre-request features tests', async () => {
422422

423423
// verify persisted environment
424424
await page.getByRole('button', { name: 'Manage Environments' }).click();
425-
await page.getByRole('option', { name: 'Manage collection environments' }).click();
425+
await page.getByRole('button', { name: 'Manage collection environments' }).click();
426426
const responseBody = page.getByRole('dialog').getByTestId('CodeEditor').locator('.CodeMirror-line');
427427
const rows = await responseBody.allInnerTexts();
428428
const bodyJson = JSON.parse(rows.join(' '));

0 commit comments

Comments
 (0)