From 7d4b026018949f85e7f8318033fcdbc195e640a1 Mon Sep 17 00:00:00 2001 From: gatzjames Date: Thu, 18 Jul 2024 19:00:57 +0200 Subject: [PATCH] fix environment selection in migration spec --- .../tests/migration/local-to-cloud-projects.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/insomnia-smoke-test/tests/migration/local-to-cloud-projects.test.ts b/packages/insomnia-smoke-test/tests/migration/local-to-cloud-projects.test.ts index b263cfe1e..86919f6e2 100644 --- a/packages/insomnia-smoke-test/tests/migration/local-to-cloud-projects.test.ts +++ b/packages/insomnia-smoke-test/tests/migration/local-to-cloud-projects.test.ts @@ -32,8 +32,9 @@ testWithLegacyDatabase('Run data migration to version 8', async ({ page, userCon // Open migrated local migrated collection that should now have Insomnia Sync await page.getByLabel('Local Collection').click(); - await page.getByLabel('Mars', { exact: true }).click(); - await page.getByRole('option', { name: 'Mars' }).click(); + await page.getByLabel('Manage Environments', { exact: true }).click(); + await page.getByLabel('Select a Collection').getByRole('option', { name: 'Mars' }).click(); + await page.getByTestId('underlay').click(); await page.getByLabel('Insomnia Sync').isVisible(); await page.getByText('Get list of rockets').click(); await page.getByTestId('project').click();