feat(网页端): 完善登录后工作台与项目管理体验
This commit is contained in:
@@ -67,6 +67,20 @@ describe("desktop layout shell", () => {
|
||||
expect(navigation).toContain("export const getActiveLayoutPath");
|
||||
});
|
||||
|
||||
it("keeps web project switching routed through the workbench entry", () => {
|
||||
const webLayout = readWebLayoutSource();
|
||||
|
||||
expect(webLayout).toContain('class="workbench-return-button"');
|
||||
expect(webLayout).toContain('await router.push("/workbench")');
|
||||
expect(webLayout).toContain("const showAdminNavigation = computed(() => Boolean(auth.user) && (!study.currentStudy || isAdminContext.value))");
|
||||
expect(webLayout).not.toContain("hasDropdown: true");
|
||||
expect(webLayout).not.toContain("type: 'study'");
|
||||
expect(webLayout).not.toContain('type: "study"');
|
||||
expect(webLayout).not.toContain("`切换项目:${item.name}`");
|
||||
expect(webLayout).not.toContain("study.setCurrentStudy(cmd.value)");
|
||||
expect(webLayout).not.toContain('router.push("/project/overview");');
|
||||
});
|
||||
|
||||
it("keeps desktop context labels and command entry points de-duplicated", () => {
|
||||
const source = readDesktopLayoutSource();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user