Testing pagination on relation manager

Is it possible to test for subsequent table pages on a relation manager? I thought this test might have worked but it's failing:

public function test_the_next_page_of_addresses_can_be_seen(): void
{
    $customer = Customer::factory()
        ->has(CustomerAddress::factory()->count(20), 'addresses')
        ->create();

    $livewire = Livewire::test(
        name: AddressesRelationManager::class,
        params: [
            'ownerRecord' => $customer,
            'pageClass' => EditCustomer::class,
        ],
    );

    $livewire
        ->call('gotoPage', 2)
        ->assertCanSeeTableRecords($customer->addresses->slice(offset: 10, length: 10))
    ;
}
image.png
Was this page helpful?