Expect the Master routing tab and menu entry in e2e 38 and 46 (#351)
CI task 590 for 0e73fd8 (#351) was red in two checks that did not
know the new Master routing yet. The product is right, the checks
were behind.
- e2e 38: the routing tab, opened by e2e 34 in the same run, is a
document and may sit behind the plugin tab. The check now accepts
every kind of document there, not only lists and assets.
- e2e 46: the menu lists "Master routing" after "Project settings…".
Tests:
- e2e 38 + 46 (melektaus-atx): ALL PASSED, 48 checks.
- Counter-probe: CI task 590, the old expectations were red in
exactly these two checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
87ec62aace
commit
204c4a41e8
2 files changed
+5
-3
No files matched your search
@@ -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),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user