fix: 更新系统化待办默认列宽
按页面当前调整结果更新系统化待办默认列宽并补充回归测试。
This commit is contained in:
parent
7954777212
commit
d212de6900
@ -519,10 +519,10 @@
|
||||
<col data-sys-todo-col="section" data-default-width="212" data-min-width="120" style="width:212px">
|
||||
<col data-sys-todo-col="sequence" data-default-width="94" data-min-width="80" style="width:94px">
|
||||
<col data-sys-todo-col="title" data-default-width="330" data-min-width="180" style="width:330px">
|
||||
<col data-sys-todo-col="owner" data-default-width="110" data-min-width="80" style="width:110px">
|
||||
<col data-sys-todo-col="assignee" data-default-width="110" data-min-width="80" style="width:110px">
|
||||
<col data-sys-todo-col="start_date" data-default-width="112" data-min-width="88" style="width:112px">
|
||||
<col data-sys-todo-col="due_date" data-default-width="112" data-min-width="88" style="width:112px">
|
||||
<col data-sys-todo-col="owner" data-default-width="80" data-min-width="80" style="width:80px">
|
||||
<col data-sys-todo-col="assignee" data-default-width="80" data-min-width="80" style="width:80px">
|
||||
<col data-sys-todo-col="start_date" data-default-width="88" data-min-width="88" style="width:88px">
|
||||
<col data-sys-todo-col="due_date" data-default-width="88" data-min-width="88" style="width:88px">
|
||||
<col data-sys-todo-col="reminder" data-default-width="116" data-min-width="96" style="width:116px">
|
||||
<col data-sys-todo-col="status" data-default-width="92" data-min-width="80" style="width:92px">
|
||||
<col data-sys-todo-col="progress_notes" data-default-width="260" data-min-width="180" style="width:260px">
|
||||
|
||||
@ -230,6 +230,36 @@ class SystemizationTodosTest extends FeatureTestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function test_default_column_widths_match_the_shared_todo_layout(): void
|
||||
{
|
||||
$this->loginAs();
|
||||
|
||||
$response = $this->get(route('business.pages.show', [
|
||||
'section' => 'other',
|
||||
'page' => 'systemization-todos',
|
||||
]))->assertOk();
|
||||
|
||||
$defaults = [
|
||||
'type' => 94,
|
||||
'section' => 212,
|
||||
'sequence' => 94,
|
||||
'title' => 330,
|
||||
'owner' => 80,
|
||||
'assignee' => 80,
|
||||
'start_date' => 88,
|
||||
'due_date' => 88,
|
||||
'reminder' => 116,
|
||||
'status' => 92,
|
||||
'progress_notes' => 260,
|
||||
];
|
||||
foreach ($defaults as $column => $width) {
|
||||
$response->assertSee(
|
||||
'data-sys-todo-col="' . $column . '" data-default-width="' . $width . '"',
|
||||
false,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function test_long_progress_and_notes_keep_the_standard_table_row_layout(): void
|
||||
{
|
||||
$this->loginAs();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user