Testing repeater

I have a repeater.

return TableRepeater::make('items')
            ->columnWidths([
                'type' => '140px',
                'quantity' => '100px',
                'reference' => '100px',
                'delivered_quantity' => '100px',
                'created_at' => '120px',
                'remarks' => '200px',
            ])
            ->relationship()
            ->schema(OrderItem::getForm())
            ->hideLabels()
            ->live(true)
            ->addable(fn ($record) => ! $record?->sent)
            ->addActionLabel('Rij toevoegen')
            ->columnSpan('full')


But when I try to test it, I get this error:

  Property [$items] not found on component: [app.filament.resources.order-resource.pages.edit-order]

  at vendor/livewire/livewire/src/Component.php:105
    101▕
    102▕         $value = $finish($value);
    103▕
    104▕         if ($value === 'noneset') {
  ➜ 105▕             throw new PropertyNotFoundException($property, $this->getName());
    106▕         }
    107▕
    108▕         return $value;
    109▕     }

  livewire(OrderResource\Pages\EditOrder::class,[
        'record' => $order->id
    ])
        ->assertSee('Rij toevoegen')
        ->callFormComponentAction('items','add')
        ->assertFormExists()
        ->assertFormFieldExists('brand_id')
        ->set('items.0.product_id', $product->id)
        ->set('items.0.quantity', 5)
        ->set('items.0.type', OrderGoal::Stock)
        ->set('items.0.reference', 1000)


Any suggestions?
Was this page helpful?