mirror of
https://github.com/scratchfoundation/scratch-gui.git
synced 2024-11-25 16:26:20 +08:00
test: boost screen height to fix l10n test
This commit is contained in:
parent
43cd8f2e21
commit
9d851caf1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user