Skip to content

Commit 35e9978

Browse files
committed
temporary fix vaadin/start#3521 in script
1 parent 55431f2 commit 35e9978

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/pit/its/start-auth.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ process.argv.forEach(a => {
1616
headless: headless,
1717
chromiumSandbox: false
1818
});
19-
const context = await browser.newContext();
19+
const context = await browser.newContext({
20+
viewport: { width: 1024, height: 800 }
21+
});
2022

2123
const page = await context.newPage();
2224
page.on('console', msg => console.log("> CONSOLE:", (msg.text() + ' - ' + msg.location().url).replace(/\s+/g, ' ')));
@@ -44,6 +46,10 @@ process.argv.forEach(a => {
4446
console.log('--- Click on eula.lane');
4547
await page.locator('text=eula.lane').click();
4648
await page.locator('input[type="text"]').nth(0).fill('FOO');
49+
50+
// TODO: reduce screen height above and uncomment this when fixed
51+
// https://github.com/vaadin/start/issues/3521
52+
// await page.locator('text=Save').scrollIntoViewIfNeeded();
4753
await page.locator('text=Save').click();
4854
await page.locator('text=/Data updated/').waitFor({ state: 'visible' });
4955
await page.waitForTimeout(5000);

0 commit comments

Comments
 (0)