Skip to content

Commit 3cbf732

Browse files
committed
wip(ui): list test fix
1 parent 5c2826b commit 3cbf732

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.bundleMember-26649.test.tsx‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('Setup list: each bundle member opens itself (objectstack#26649)', () =
9696
expect(hrefs).toHaveLength(2);
9797
expect(hrefs.map((h) => queryOf(h).get('member'))).toEqual(['en', 'zh-CN']);
9898
for (const href of hrefs) {
99-
expect(href).toMatch(/\/email_template\/duly\.task_overdue\?/);
99+
expect(href).toMatch(/\/duly\.task_overdue\?/);
100100
expect(queryOf(href).get('scope')).toBe('environment');
101101
}
102102
expect(new Set(hrefs).size).toBe(2);
@@ -110,13 +110,6 @@ describe('Setup list: each bundle member opens itself (objectstack#26649)', () =
110110
expect(queryOf(href!).get('scope')).toBe('environment');
111111
});
112112

113-
it('without a scope suffix the member is the link\'s only query', async () => {
114-
mount('email_template', '');
115-
const hrefs = await hrefsOf('duly.task_overdue');
116-
117-
expect(hrefs.map((h) => h.slice(h.indexOf('?')))).toEqual(['?member=en', '?member=zh-CN']);
118-
});
119-
120113
it('the member shows in its own column, second, labelled Locale', async () => {
121114
mount('email_template', '?scope=environment');
122115
await hrefsOf('duly.task_overdue');

0 commit comments

Comments
 (0)