Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion test/webdriverio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ function getOptions() {
const toolboxObject =
toolbox === 'flyout' ? toolboxFlyout : toolboxCategories;

const rtlParam = params.get('rtl');
const rtl = !!rtlParam;

return {
scenario,
stackConnections,
renderer,
toolbox: toolboxObject,
rtl,
};
}

Expand All @@ -67,11 +71,12 @@ function getOptions() {
* @returns The created workspace.
*/
function createWorkspace(): Blockly.WorkspaceSvg {
const {scenario, stackConnections, renderer, toolbox} = getOptions();
const {scenario, stackConnections, renderer, toolbox, rtl} = getOptions();

const injectOptions = {
toolbox,
renderer,
rtl,
};
const blocklyDiv = document.getElementById('blocklyDiv');
if (!blocklyDiv) {
Expand Down
6 changes: 6 additions & 0 deletions test/webdriverio/test/test_setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,14 @@ function posixPath(target) {
export const testFileLocations = {
BASE:
'file://' + posixPath(path.join(__dirname, '..', 'build')) + '/index.html',
BASE_RTL:
'file://' + posixPath(path.join(__dirname, '..', 'build')) + '/index.html?rtl=true',
GERAS:
'file://' +
posixPath(path.join(__dirname, '..', 'build')) +
'/index.html?renderer=geras',
GERAS_RTL:
'file://' +
posixPath(path.join(__dirname, '..', 'build')) +
'/index.html?renderer=geras&rtl=true',
};