Make the disk space meter visible and show used percent.
Use an inline-colored full-width progress bar so the fill renders without relying on purged Tailwind classes.
This commit is contained in:
@@ -50,10 +50,17 @@ class DiskSpaceTest extends TestCase
|
||||
{
|
||||
Cache::flush();
|
||||
|
||||
$this->get(route('recordings.index'))
|
||||
$response = $this->get(route('recordings.index'))
|
||||
->assertOk()
|
||||
->assertSee('Disk space used', false)
|
||||
->assertSee('Disk space', false)
|
||||
->assertSee('% used', false)
|
||||
->assertSee('free')
|
||||
->assertSee('role="progressbar"', false);
|
||||
->assertSee('role="progressbar"', false)
|
||||
->assertSee('background-color:', false);
|
||||
|
||||
$this->assertMatchesRegularExpression(
|
||||
'/width:\s*[\d.]+%;\s*background-color:\s*#(0d9488|f59e0b|dc2626)/',
|
||||
$response->getContent(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user