test('superadmin can create sub-tag', function () { $this->signInAsSuperAdmin(); $tag = Tag::where('name', 'Prévention')->first(); livewire(ManageTagChildren::class, ['record' => $tag->id]) ->callTableAction('create', null, [ 'name' => 'tag bis', ]); $this->assertDatabaseHas(Tag::class, [ 'name' => 'tag bis', ]);});test('superadmin can edit sub-tag', function () { $this->signInAsSuperAdmin(); $tag = Tag::where('name', 'Prévention')->first(); $subTag = Tag::where('name', 'Vaccination')->first(); livewire(ManageTagChildren::class, ['record' => $tag->id]) ->callTableAction('edit', $subTag, [ 'name' => 'tag ter', ]); $this->assertDatabaseHas(Tag::class, [ 'name' => 'tag ter', ]);});