From f3099cb7032879931b581b8e0290757b26ebf12b Mon Sep 17 00:00:00 2001 From: Carla Ramirez Date: Mon, 23 Sep 2024 15:57:01 -0400 Subject: [PATCH] pruebas --- tests/CrediForm2.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/CrediForm2.spec.ts b/tests/CrediForm2.spec.ts index ad0c19d..8a37892 100644 --- a/tests/CrediForm2.spec.ts +++ b/tests/CrediForm2.spec.ts @@ -16,7 +16,10 @@ test('test', async ({ page }) => { await page.getByText('En mi lugar de trabajo').click(); await page.getByText('En otro lugar').click(); - await page.locator('div').filter({ hasText: /^ProvinciaSeleccione su Provincia$/ }).getByLabel('Provincia').click(); + const provinciaElement = page.locator('div').filter({ hasText: /^ProvinciaSeleccione su Provincia$/ }).getByLabel('Provincia'); + await expect(provinciaElement).toBeVisible(); + await provinciaElement.click(); + await page.getByPlaceholder('Buscar').fill('colon'); await page.getByRole('option', { name: 'COLON' }).click(); await page.getByLabel('Distrito').click();