Skip to content

Commit

Permalink
fix(e2e): add dummy component to ensure focus out test works on most …
Browse files Browse the repository at this point in the history
…setup
  • Loading branch information
dpellier committed Jul 29, 2024
1 parent c0b1a9b commit 2290685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('ods-input navigation', () => {
async function setup(content: string): Promise<void> {
page = await newE2EPage();

await page.setContent(content);
await page.setContent(`${content}<button>Dummy to focus out</button>`);
await page.evaluate(() => document.body.style.setProperty('margin', '0px'));

el = await page.find('ods-input');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('ods-password navigation', () => {
async function setup(content: string): Promise<void> {
page = await newE2EPage();

await page.setContent(content);
await page.setContent(`${content}<button>Dummy to focus out</button>`);
await page.evaluate(() => document.body.style.setProperty('margin', '0px'));

el = await page.find('ods-password');
Expand Down

0 comments on commit 2290685

Please sign in to comment.