Files
preland/tests/check-upload-button-state.php
Panfilov Konstantin 700408c1e0
deploy-preland / deploy barbariskatest (push) Successful in 22s
fix: lock upload button until tour redirect
2026-10-16 05:23:52 +03:00

14 lines
533 B
PHP

<?php
/** Регрессия: до редиректа на Tour повторная загрузка блокируется для любого формата. */
$form = (string) file_get_contents(dirname(__DIR__) . '/components/form.php');
foreach (['function beginUploadPending', 'uploadDots', 'Загрузка', 'uploadPending'] as $needle) {
if (!str_contains($form, $needle)) {
fwrite(STDERR, "FAIL: preland uploader must contain {$needle}\n");
exit(1);
}
}
echo "OK: preland upload button state\n";