修复了一些问题
This commit is contained in:
@@ -50,7 +50,8 @@ test('notification preference UI uses the global toast lifecycle', () => {
|
||||
assert.ok(template.includes(text));
|
||||
}
|
||||
assert.match(template, /role="switch"/);
|
||||
assert.match(styles, /\.uc-notification-switch input::before,[\s\S]*?\.uc-notification-switch input::after[\s\S]*?content: none !important/);
|
||||
assert.match(styles, /\.uc-notification-switch input\[type='checkbox'\][\s\S]*?opacity: 0 !important/);
|
||||
assert.match(styles, /\.uc-notification-switch input\[type='checkbox'\]::before,[\s\S]*?\.uc-notification-switch input\[type='checkbox'\]::after[\s\S]*?content: none !important/);
|
||||
assert.match(script, /aksrt-notification-preferences-toast/);
|
||||
assert.match(script, /notyf\([^;]+?'load'[^;]+?toastId/);
|
||||
assert.match(script, /notyf\([^;]+?'success'[^;]+?toastId/);
|
||||
|
||||
Reference in New Issue
Block a user