Assert visibility of every field of Tab in resource form

Is there a way to assert that entire Tab with fields in form is visible/hidden?

I've got a form with this schema

public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Tabs::make('tabs')->schema([
                    Tab::make(__('Internal services'))
                        ->visible(true)  // dummy condition
                        ->schema(self::internalFields()),

                    Tab::make(__('External services'))
                        ->visible(false) // dummy condition
                        ->schema(self::externalFields()),

                    .....


I want to assert that all fields in Internal services tab are visible and assert that all fields in External services tab are hidden.
I'm currently asserting visibility of each field, which seems a bit excessive, since every tab has like 15 fields..
Was this page helpful?