Refine subscription panel layout and feedback
This commit is contained in:
@@ -87,7 +87,8 @@ test('validation rejection parser preserves structured errors and normalizes non
|
||||
test('feature keeps exact slots, truthy closes and subscription DOM order', () => {
|
||||
assert.match(feature, /const host = new URL\(normalizedUrl\)\.hostname;[\s\S]*if \(!await onAdd\(label, normalizedUrl\)\) return;[\s\S]*resetAdd\(\)/);
|
||||
assert.match(feature, /if \(!await onForget\(deleteProfile\.id, deleteStopsVpn \? 'stop-and-delete' : 'delete'\)\) return;[\s\S]*setDeleteId\(''\)/);
|
||||
assert.match(feature, /client-profiles-operation[\s\S]*\{statusSlot\}[\s\S]*client-profile-list[\s\S]*feature\.adding[\s\S]*AddProfileForm[\s\S]*client-profile-add-trigger/);
|
||||
assert.match(feature, /\{statusSlot\}[\s\S]*client-profile-list[\s\S]*feature\.adding[\s\S]*AddProfileForm[\s\S]*client-profile-add-trigger/);
|
||||
assert.doesNotMatch(feature, /client-profiles-operation|activeOperation|operationText/);
|
||||
assert.doesNotMatch(feature, /client-profiles-current|aria-label="Добавить подписку"/);
|
||||
assert.match(feature, /const drawerOpen = feature\.open && feature\.profiles\.length > 0/);
|
||||
assert.match(feature, /feature\.profiles\.length === 0 && <div className="client-form client-subscription-first-run"/);
|
||||
|
||||
Reference in New Issue
Block a user