优化
This commit is contained in:
@@ -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\(\) \}/)
|
||||
|
||||
Reference in New Issue
Block a user