feat: refine global shell for mobile landscape
This commit is contained in:
@@ -532,7 +532,7 @@ describe('V2 production entry', () => {
|
||||
test('keeps the shared desktop and mobile application shell on Semi UI navigation primitives', () => {
|
||||
expect(appShellSource).toContain('<Layout className="v2-shell">');
|
||||
expect(appShellSource).toContain('<Nav className="v2-navigation"');
|
||||
expect(appShellSource).toContain('<SideSheet className="v2-mobile-more-sidesheet"');
|
||||
expect(appShellSource).toContain('className="v2-mobile-more-sidesheet"');
|
||||
expect(appShellSource).toContain('className="v2-password-modal"');
|
||||
expect(appShellSource.match(/<PasswordInput/g)).toHaveLength(3);
|
||||
expect(authGateSource.match(/<PasswordInput/g)).toHaveLength(2);
|
||||
@@ -541,6 +541,12 @@ describe('V2 production entry', () => {
|
||||
expect(passwordInputSource).toContain("`${visible ? '隐藏' : '显示'}${visibilityLabel}`");
|
||||
expect(workspaceStyles).toContain('.v2-password-modal .semi-modal {');
|
||||
expect(workspaceStyles).not.toContain('.v2-password-modal.semi-modal {');
|
||||
expect(appShellSource).toContain('className="v2-mobile-more-groups"');
|
||||
expect(appShellSource).toContain("title: '分析与处置'");
|
||||
expect(appShellSource).toContain("title: '平台治理'");
|
||||
expect(workspaceStyles).toContain('.v2-mobile-more-section > header {');
|
||||
expect(workspaceStyles).toContain('.v2-auth-form-heading {');
|
||||
expect(workspaceStyles).toContain('grid-template-columns: minmax(190px, .58fr) minmax(0, 1fr);');
|
||||
expect(appShellSource).not.toContain('v2-mobile-more-backdrop');
|
||||
expect(appShellSource).not.toContain('v2-mobile-more-sheet');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user