<?php

it('loads the petition page with a form', function () {
    $this->visit(BASE_URL . '/underskriftskampanje/medisinsk-cannabis-pa-resept/')
        ->assertPresent('input[name="firstname"]');
});

it('shows required form fields', function () {
    $this->visit(BASE_URL . '/underskriftskampanje/medisinsk-cannabis-pa-resept/')
        ->assertPresent('input[name="firstname"]')
        ->assertPresent('input[name="email"]')
        ->assertPresent('button[type="submit"]');
});

it('does not submit empty form', function () {
    $this->visit(BASE_URL . '/underskriftskampanje/medisinsk-cannabis-pa-resept/')
        ->press('button[type="submit"]')
        ->assertPresent('input[name="firstname"]');
});
