<?php

it('FAQ listing page loads', function () {
    $this->visit(BASE_URL . '/faq')
        ->assertSee('Ofte stilte spørsmål');
});

it('FAQ listing shows question items', function () {
    $this->visit(BASE_URL . '/faq')
        ->assertSee('medisinsk cannabis');
});

it('individual FAQ article loads', function () {
    $this->visit(BASE_URL . '/faq/Hva-er-MC')
        ->assertSourceHas('<main');
});

it('individual FAQ article shows content', function () {
    $this->visit(BASE_URL . '/faq/Hva-er-MC')
        ->assertSee('medisinsk cannabis');
});

it('FAQ article about driving license loads', function () {
    $this->visit(BASE_URL . '/faq/forerkort')
        ->assertSourceHas('<main');
});
