test: boost screen height to fix l10n test

This commit is contained in:
Christopher Willis-Ford 2024-08-28 15:38:24 -07:00
parent 43cd8f2e21
commit 9d851caf1d

View File

@ -236,8 +236,13 @@ class SeleniumHelper {
const outerError = new Error(`loadUri failed with arguments:\n\turi: ${uri}`);
try {
await this.setTitle(`loadUri ${uri}`);
// TODO: The height is set artificially high to fix this test:
// 'Loading with locale shows correct translation for string length block parameter'
// which fails because the block is offscreen.
// We should set this back to 1024x768 once we find a good way to fix that test.
// Using `scrollIntoView` didn't seem to do the trick.
const WINDOW_WIDTH = 1024;
const WINDOW_HEIGHT = 768;
const WINDOW_HEIGHT = 960;
await this.driver
.get(`file://${uri}`);
await this.driver