Add onboarding weather and template gradients
This commit is contained in:
@@ -15,4 +15,11 @@ test('async save runs success hooks before redirecting close or new saves', () =
|
||||
assert.ok(adminPageScript.includes('if (typeof settings.afterSuccess === \'function\')'));
|
||||
assert.ok(adminPageScript.includes('clearFormDirty(form);'));
|
||||
assert.ok(adminPageScript.includes("if (submitterValue === 'close' || submitterValue === 'new')"));
|
||||
});
|
||||
|
||||
test('data-source toggles update in place instead of reloading the edit form', () => {
|
||||
assert.ok(adminPageScript.includes('function updateDataSourceToggle(form, response)'));
|
||||
assert.ok(adminPageScript.includes('data-async-data-source-toggle'));
|
||||
assert.ok(adminPageScript.includes("showToast(message || (willEnable ? 'Data source enabled.' : 'Data source disabled.'), 'success')"));
|
||||
assert.ok(!adminPageScript.includes("/^\\/data-sources\\/(?:api-sources|rss-feeds|weather)\\/\\d+$/.test(actionPath);"));
|
||||
});
|
||||
Reference in New Issue
Block a user