<?php

namespace Tests\Feature;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class FrontPlatformPagesUseExternalCssTest extends TestCase
{
    use RefreshDatabase;

    public function test_platform_index_should_use_external_css_and_not_inline_style_block(): void
    {
        $res = $this->get('/platform');
        $res->assertOk();

        $res->assertSee('/css/platform.css', false);
        $res->assertDontSee('<style>', false);
    }

    public function test_platform_plans_should_use_external_css_and_not_inline_style_block(): void
    {
        $res = $this->get('/platform/plans');
        $res->assertOk();

        $res->assertSee('/css/platform.css', false);
        $res->assertDontSee('<style>', false);
    }
}
