From ebd5632b1d191c02496a229c28bd5240571bb0ba Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 30 Aug 2024 11:02:35 +0200 Subject: [PATCH 1/2] Debug CI --- .../tests/lckr_jupyterlab_variableinspector.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts b/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts index ba13ae5..7c8f4d6 100644 --- a/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts +++ b/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts @@ -5,7 +5,7 @@ test('test', async ({ page }) => { await page.getByText('Python 3 (ipykernel) | Idle').waitFor(); await page.getByLabel('notebook content').getByRole('textbox').fill('a = 1'); await page.keyboard.press('Shift+Enter'); - await page.getByRole('textbox').nth(2).fill('b = "hello"'); + await page.getByRole('textbox').nth(1).fill('b = "hello"'); await page.keyboard.press('Control+Enter'); await page.getByRole('tabpanel').click({ @@ -23,7 +23,7 @@ test('test', async ({ page }) => { .soft(firstRow.locator('.jp-VarInspector-type')) .toHaveText(/int/); await expect - .soft(firstRow.locator('jp-data-grid-cell').nth(4)) + .soft(firstRow.locator('jp-data-grid-cell').nth(3)) .toHaveText(/\d\d/); await expect .soft(firstRow.locator('jp-data-grid-cell').last()) @@ -36,7 +36,7 @@ test('test', async ({ page }) => { .soft(secondRow.locator('.jp-VarInspector-type')) .toHaveText(/str/); await expect - .soft(secondRow.locator('jp-data-grid-cell').nth(4)) + .soft(secondRow.locator('jp-data-grid-cell').nth(3)) .toHaveText(/\d\d/); await expect .soft(secondRow.locator('jp-data-grid-cell').last()) @@ -48,7 +48,7 @@ test('variable filter', async ({ page }) => { await page.getByText('Python 3 (ipykernel) | Idle').waitFor(); await page.getByLabel('notebook content').getByRole('textbox').fill('a1 = 1'); await page.keyboard.press('Shift+Enter'); - await page.getByRole('textbox').nth(2).fill('b1 = "hello"'); + await page.getByRole('textbox').nth(1).fill('b1 = "hello"'); await page.keyboard.press('Control+Enter'); await page.getByRole('tabpanel').click({ @@ -68,7 +68,7 @@ test('variable filter', async ({ page }) => { await expect.soft(bRow.locator('.jp-VarInspector-varName')).toHaveText(/b1/); await expect.soft(bRow.locator('.jp-VarInspector-type')).toHaveText(/str/); await expect - .soft(bRow.locator('jp-data-grid-cell').nth(4)) + .soft(bRow.locator('jp-data-grid-cell').nth(3)) .toHaveText(/\d\d/); await expect .soft(bRow.locator('jp-data-grid-cell').last()) @@ -105,7 +105,7 @@ test('variable filter', async ({ page }) => { await expect.soft(aRow.locator('.jp-VarInspector-varName')).toHaveText(/a1/); await expect.soft(aRow.locator('.jp-VarInspector-type')).toHaveText(/int/); await expect - .soft(aRow.locator('jp-data-grid-cell').nth(4)) + .soft(aRow.locator('jp-data-grid-cell').nth(3)) .toHaveText(/\d\d/); await expect.soft(aRow.locator('jp-data-grid-cell').last()).toHaveText(/1/); }); From c36e1d874066e08e9a02e21848a1f5282c88eb1d Mon Sep 17 00:00:00 2001 From: martinRenou Date: Fri, 30 Aug 2024 11:12:00 +0200 Subject: [PATCH 2/2] Debug --- ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts b/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts index 7c8f4d6..cc50ee2 100644 --- a/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts +++ b/ui-tests/tests/lckr_jupyterlab_variableinspector.spec.ts @@ -23,7 +23,7 @@ test('test', async ({ page }) => { .soft(firstRow.locator('.jp-VarInspector-type')) .toHaveText(/int/); await expect - .soft(firstRow.locator('jp-data-grid-cell').nth(3)) + .soft(firstRow.locator('jp-data-grid-cell').nth(4)) .toHaveText(/\d\d/); await expect .soft(firstRow.locator('jp-data-grid-cell').last()) @@ -36,7 +36,7 @@ test('test', async ({ page }) => { .soft(secondRow.locator('.jp-VarInspector-type')) .toHaveText(/str/); await expect - .soft(secondRow.locator('jp-data-grid-cell').nth(3)) + .soft(secondRow.locator('jp-data-grid-cell').nth(4)) .toHaveText(/\d\d/); await expect .soft(secondRow.locator('jp-data-grid-cell').last()) @@ -68,7 +68,7 @@ test('variable filter', async ({ page }) => { await expect.soft(bRow.locator('.jp-VarInspector-varName')).toHaveText(/b1/); await expect.soft(bRow.locator('.jp-VarInspector-type')).toHaveText(/str/); await expect - .soft(bRow.locator('jp-data-grid-cell').nth(3)) + .soft(bRow.locator('jp-data-grid-cell').nth(4)) .toHaveText(/\d\d/); await expect .soft(bRow.locator('jp-data-grid-cell').last()) @@ -105,7 +105,7 @@ test('variable filter', async ({ page }) => { await expect.soft(aRow.locator('.jp-VarInspector-varName')).toHaveText(/a1/); await expect.soft(aRow.locator('.jp-VarInspector-type')).toHaveText(/int/); await expect - .soft(aRow.locator('jp-data-grid-cell').nth(3)) + .soft(aRow.locator('jp-data-grid-cell').nth(4)) .toHaveText(/\d\d/); await expect.soft(aRow.locator('jp-data-grid-cell').last()).toHaveText(/1/); });