Skip to content

Commit

Permalink
click instead of focus
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Oct 11, 2024
1 parent feddd8f commit c08ac33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/library/inspector/cli-codegen-1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ await page.Locator(\"#age\").SelectOptionAsync(new[] { \"2\" });`);

const locator = await recorder.hoverOverElement('select');
expect(locator).toBe(`locator('#age')`);
await page.locator('select').focus();
await page.locator('select').click();
await page.selectOption('select', ['1']);

const [message, sources] = await Promise.all([
Expand Down Expand Up @@ -722,7 +722,7 @@ await page.Locator("#age").SelectOptionAsync(new[] { "1", "2" });`);
await recorder.setContentAndWait(`<select id="age" multiple onchange="console.log('[' + [...age.selectedOptions].map(x => x.value).join(',') + ']')"><option value="1">1</option><option value="2">2</option></select>`);
const locator = await recorder.hoverOverElement('select');
expect(locator).toBe(`locator('#age')`);
await page.locator('select').focus();
await page.locator('select').click();
await page.selectOption('select', ['1']);

const [message, sources] = await Promise.all([
Expand Down

0 comments on commit c08ac33

Please sign in to comment.