This commit is contained in:
2026-09-16 11:06:39 +08:00
parent 19334fc4a2
commit d87ddd6964
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -212,6 +212,7 @@ test('home consumes Android Back while its utility menu is open', async () => {
read('../pages/home/home.vue'), read('../pages/profile/profile.vue'), read('../components/PortalHeader.vue')
])
assert.match(home, /@menu-change="menuOpen = \$event"/)
assert.doesNotMatch(home, /:show-profile="false"/)
assert.match(home, /onBackPress\(\)[\s\S]*?if \(!this\.menuOpen\) return false[\s\S]*?this\.\$refs\.portalHeader\.closeMenu\(\)[\s\S]*?return true/)
assert.match(profile, /:show-profile="false"/)
assert.match(profile, /openLogout\(\) \{ this\.logoutOpen = true; this\.\$refs\.logoutPopup\.open\(\) \}/)