diff --git a/web/resources/views/venix/user/edit.tpl b/web/resources/views/venix/user/edit.tpl index 0bf1121a..4e029120 100644 --- a/web/resources/views/venix/user/edit.tpl +++ b/web/resources/views/venix/user/edit.tpl @@ -21,16 +21,18 @@ -
+ -
+ +
+
+
-

这些资料保存在当前账户中,可随时更新。

diff --git a/web/tests/UserProfileTest.php b/web/tests/UserProfileTest.php index d0538653..8d368514 100644 --- a/web/tests/UserProfileTest.php +++ b/web/tests/UserProfileTest.php @@ -108,6 +108,13 @@ $assert(str_contains($sources['drawer'], 'id="vuProfileForm"') && str_contains($sources['runtime'], 'post("/user/profile", profile)') && preg_match('/]*\bopen\b/i', $sources['drawer']) !== 1, 'The account information form is not wired correctly or a drawer card is open by default.'); +$assert(preg_match('/]*id="vuProfileForm"[^>]*>(.*?)<\/form>/s', $sources['drawer'], $profileForm) === 1 + && preg_match_all('/
(.*?)<\/div>/s', $profileForm[1], $profileRows) === 4, + 'The account information form must render as four two-column rows.'); +foreach ($profileRows[1] as $profileRow) { + $assert(substr_count($profileRow, '