diff --git a/tools/e2e/38-plugins.mjs b/tools/e2e/38-plugins.mjs index 48488f62..2a6548b8 100644 --- a/tools/e2e/38-plugins.mjs +++ b/tools/e2e/38-plugins.mjs @@ -39,14 +39,15 @@ export async function plugins(t) { ); // 38b. Its tab sits after the fixed ones and ahead of the open documents (#171) – in the row or - // behind », depending on the width. + // behind », depending on the width. Master routing (#351) is a document too. const { order } = await json('__gm.tabRow()'); const at = order.indexOf('plugin:assets'); + const isDocument = (tab) => ['list', 'routing', 'management'].includes(tab) || tab.startsWith('asset:'); check('the plugin tab is in the tab row', at >= 0, JSON.stringify(order)); check( 'and it comes after the fixed tabs, ahead of any document', JSON.stringify(order.slice(0, 2)) === JSON.stringify(['scene', 'game']) && - order.slice(at + 1).every((tab) => tab === 'list' || tab.startsWith('asset:')), + order.slice(at + 1).every(isDocument), JSON.stringify(order), ); diff --git a/tools/e2e/46-topbar.mjs b/tools/e2e/46-topbar.mjs index 3304d908..2458f768 100644 --- a/tools/e2e/46-topbar.mjs +++ b/tools/e2e/46-topbar.mjs @@ -58,13 +58,14 @@ export async function topbar(t) { 'Snapshots…', 'Release…', 'Project settings…', + 'Master routing', 'Clear saved data', null, 'General settings…', 'Plugins', ]; check( - 'the menu button opens new project, the project picker, the settings, clearing saves, the general settings and the plugins', + 'the menu button opens new project, the project picker, the settings, the master routing, clearing saves, the general settings and the plugins', JSON.stringify(rows) === JSON.stringify(expected), JSON.stringify(rows), );