进行了一些小修复
This commit is contained in:
1 parent
7c0c21e984
commit
ee4e599f2d
13 files changed
+496
-75
No files matched your search
@@ -370,7 +370,8 @@ test('settings actions use rehydrated fixed-id notyf flows', () => {
|
||||
test('front submit actions use direct fixed-id notyf flows', () => {
|
||||
const submit = read('assets/js/front-submit.js');
|
||||
const editor = read('assets/js/front-submit-editor.js');
|
||||
const source = submit + '\n' + editor;
|
||||
const downloads = read('assets/js/front-submit-pay-download.js');
|
||||
const source = submit + '\n' + editor + '\n' + downloads;
|
||||
const page = read('templates/pages/page-submit.php');
|
||||
|
||||
[
|
||||
@@ -399,7 +400,7 @@ test('front submit actions use direct fixed-id notyf flows', () => {
|
||||
assert.match(submit, new RegExp("notyf\\([^;]+?'danger'[^;]+?" + variable + "\\);"));
|
||||
});
|
||||
|
||||
assert.match(submit, /aksrt-front-submit-resource-upload-toast[\s\S]*?'load'[\s\S]*?'success'[\s\S]*?'danger'/);
|
||||
assert.match(downloads, /aksrt-front-submit-resource-upload-toast[\s\S]*?'load'[\s\S]*?'success'[\s\S]*?'danger'/);
|
||||
assert.match(editor, /aksrt-front-submit-editor-media-toast[\s\S]*?'load'[\s\S]*?'success'[\s\S]*?'danger'/);
|
||||
assert.match(submit, /aksrt-front-submit-ai-tags-toast[\s\S]*?aksrt-front-submit-ai-summary-toast[\s\S]*?'load'[\s\S]*?'success'[\s\S]*?'danger'/);
|
||||
assert.match(submit, /needContent[^;]+?'warning'/);
|
||||
|
||||
Reference in new issue
Block a user