diff --git a/ui-tests/package.json b/ui-tests/package.json index ff3308f..512c02b 100644 --- a/ui-tests/package.json +++ b/ui-tests/package.json @@ -9,7 +9,7 @@ "test:update": "jlpm playwright test --update-snapshots" }, "devDependencies": { - "@jupyterlab/galata": "^5.0.5", - "@playwright/test": "^1.37.0" + "@jupyterlab/galata": "^5.0.6", + "@playwright/test": "^1.38.1" } } diff --git a/ui-tests/tests/search.spec.ts b/ui-tests/tests/search.spec.ts index d23cce3..812f3e1 100644 --- a/ui-tests/tests/search.spec.ts +++ b/ui-tests/tests/search.spec.ts @@ -50,7 +50,8 @@ test('should get 5 matches', async ({ page, tmpPath }) => { ); // Check the match is selected in the editor - await expect(page.locator('::selection')).toHaveText( + await page.getByLabel('conftest.py').getByRole('textbox').waitFor(); + expect(await page.evaluate(() => `${window.getSelection()}`)).toEqual( 'strange' ); }); diff --git a/ui-tests/yarn.lock b/ui-tests/yarn.lock index d73c28b..17aaf7e 100644 --- a/ui-tests/yarn.lock +++ b/ui-tests/yarn.lock @@ -662,7 +662,7 @@ __metadata: languageName: node linkType: hard -"@jupyterlab/galata@npm:^5.0.5": +"@jupyterlab/galata@npm:^5.0.6": version: 5.0.6 resolution: "@jupyterlab/galata@npm:5.0.6" dependencies: @@ -1279,7 +1279,7 @@ __metadata: languageName: node linkType: hard -"@playwright/test@npm:^1.32.2, @playwright/test@npm:^1.37.0": +"@playwright/test@npm:^1.32.2, @playwright/test@npm:^1.38.1": version: 1.38.1 resolution: "@playwright/test@npm:1.38.1" dependencies: @@ -2779,8 +2779,8 @@ __metadata: version: 0.0.0-use.local resolution: "jupyterlab-search-replace-ui-tests@workspace:." dependencies: - "@jupyterlab/galata": ^5.0.5 - "@playwright/test": ^1.37.0 + "@jupyterlab/galata": ^5.0.6 + "@playwright/test": ^1.38.1 languageName: unknown linkType: soft