diff --git a/end2end/tests/reportBuilder.spec.ts b/end2end/tests/reportBuilder.spec.ts index bcc6cf38..c9ecba83 100644 --- a/end2end/tests/reportBuilder.spec.ts +++ b/end2end/tests/reportBuilder.spec.ts @@ -156,17 +156,19 @@ test('modify search with And logical filter', async ({ page }) => { await expect(page.getByLabel('Sort by Radio')).toBeVisible(); }); -test.only("fill textbox for multi line text", async ({ page }) => { +test("fill textbox for multi line text", async ({ page }) => { await page.goto("https://host.docker.internal/Test_Request_Portal/?a=reports&v=3&query=N4IgLgpgTgtgziAXAbVASwCZJHSAHASQBEQAaEAez2gEMwKpsBeMkGOgYwAtsoI4KAGwBuELOQDmdCNgCCAORIBfUuiyIQHaRIYBPYqyq16jDS3Lsw3bADMGMAPoBWCDQAMAdlZTIcxSBU1bAwIQQhIcUpqKDoGZlZLa0Q3SWk%2FZQBdcgArCjQAOwQUEAK0MDRYqHkaGBksnAYwJGAVEAlwojoaJGQQABZWL3IAZhB6wTQYMqQARjd58gmpsAB5Gxs4cKQ3JSA%3D%3D&indicators=NobwRAlgdgJhDGBDALgewE4EkAiYBcYyEyANgKZgA0YUiAthQVWAM4bL4AMAvpeNHCRosuAtGIQUGZrQb4wzNug54efSLARSR8xPCKooAIQCuyNFBn1GC6kpVr%2BmoRhzyALFbkEAsiZJEAAQk0GSByGQAHhx27Fy8ToLabgQA7F42AEqIcKiKcaoJGknCKWAAzBnyAMrQAObkwaHhUTGsBTwAukA"); - await page.getByRole('textbox', { name: 'Multi line text' }).click(); - - await page.getByRole('textbox', { name: 'Multi line text' }).fill('test this is a test'); + await page.getByRole("cell", { name: "testing" }).click(); + await page.getByLabel("Multi line text", { exact: true }).click(); + await page.getByLabel('Multi line text', { exact: true }).fill("test this is a test"); + await page.getByRole("button", { name: "Save Change" }).click(); + await expect(page.getByRole('cell', { name: "test this is a test" })).toBeVisible(); + + await page.getByRole("cell", { name: "test this is a test" }).click(); + await expect(page.locator('#LeafFormGrid517_960_4')).toContainText("test this is a test"); + await page.getByLabel("Multi line text", { exact: true }).click(); + await page.getByLabel('Multi line text', { exact: true }).fill('testing'); await page.getByRole('button', { name: 'Save Change' }).click(); - await expect(page.locator('#LeafFormGrid517_960_4')).toContainText('test this is a test'); - await page.getByRole('cell', { name: 'test this is the test' }).click(); - await page.getByLabel('Multi line text', { exact: true }).click(); - await page.getByLabel('Multi line text', { exact: true }).fill('test'); - await page.getByRole('button', { name: 'Save Change' }).click(); }); test("Select multiple filter using AND/OR,", async ({ page }) => {