Skip to content

Commit 14a2a3c

Browse files
committed
chore: Attempt to pretend to be JavaFX.
1 parent cc40d71 commit 14a2a3c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/webdriverio/test/scroll_test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ suite('Scrolling into view', function () {
117117

118118
// Assert new block has been scrolled into the viewport.
119119
await this.browser.pause(PAUSE_TIME);
120-
await this.browser.execute(async () => {
121-
await Blockly.renderManagement.finishQueuedRenders()
122-
});
123-
await this.browser.pause(3000);
124120
// await this.browser.saveScreenshot(`failures/extra_snapshot_for_verification.png`);
125121
const blockBounds = await this.browser.execute(() => {
126122
const workspace = Blockly.getMainWorkspace() as Blockly.WorkspaceSvg;

test/webdriverio/test/test_setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function driverSetup(
6363
'unhandledPromptBehavior': 'ignore',
6464
// eslint-disable-next-line @typescript-eslint/naming-convention
6565
'goog:chromeOptions': {
66-
args: ['--allow-file-access-from-files'],
66+
args: ['--allow-file-access-from-files', '--user_agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.44 (KHTML, like Gecko) JavaFX/8.0 Safari/537.44'],
6767
},
6868
// Allows certain BiDi features to work correctly.
6969
// 'webSocketUrl': true

0 commit comments

Comments
 (0)