This commit is contained in:
Carla Ramirez 2024-09-23 15:57:01 -04:00
parent 35415c0347
commit f3099cb703

View File

@ -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();