Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Admin/DistlistTest.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | public function testInfo(): void | ||||
->on($user_page) | ->on($user_page) | ||||
->click('@nav #tab-distlists') | ->click('@nav #tab-distlists') | ||||
->pause(1000) | ->pause(1000) | ||||
->click('@user-distlists table tbody tr:first-child td a') | ->click('@user-distlists table tbody tr:first-child td a') | ||||
->on($distlist_page) | ->on($distlist_page) | ||||
->assertSeeIn('@distlist-info .card-title', $group->email) | ->assertSeeIn('@distlist-info .card-title', $group->email) | ||||
->with('@distlist-info form', function (Browser $browser) use ($group) { | ->with('@distlist-info form', function (Browser $browser) use ($group) { | ||||
$browser->assertElementsCount('.row', 3) | $browser->assertElementsCount('.row', 3) | ||||
->assertSeeIn('.row:nth-child(1) label', 'ID (Created at)') | ->assertSeeIn('.row:nth-child(1) label', 'ID (Created)') | ||||
->assertSeeIn('.row:nth-child(1) #distlistid', "{$group->id} ({$group->created_at})") | ->assertSeeIn('.row:nth-child(1) #distlistid', "{$group->id} ({$group->created_at})") | ||||
->assertSeeIn('.row:nth-child(2) label', 'Status') | ->assertSeeIn('.row:nth-child(2) label', 'Status') | ||||
->assertSeeIn('.row:nth-child(2) #status.text-danger', 'Not Ready') | ->assertSeeIn('.row:nth-child(2) #status.text-danger', 'Not Ready') | ||||
->assertSeeIn('.row:nth-child(3) label', 'Recipients') | ->assertSeeIn('.row:nth-child(3) label', 'Recipients') | ||||
->assertSeeIn('.row:nth-child(3) #members', $group->members[0]) | ->assertSeeIn('.row:nth-child(3) #members', $group->members[0]) | ||||
->assertSeeIn('.row:nth-child(3) #members', $group->members[1]); | ->assertSeeIn('.row:nth-child(3) #members', $group->members[1]); | ||||
}); | }); | ||||
Show All 37 Lines |