mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 16:14:35 +00:00
fix(ui): show resource domains in mobile resource list
This commit is contained in:
1 parent
2c6208c8ce
commit
1f550e8fcf
3 files changed
+40
-6
No files matched your search
@@ -17,3 +17,22 @@ it('provides dynamic multi-select resource filters', function () {
|
||||
->toContain('Clear filters')
|
||||
->not->toContain("typeFilter: 'all'");
|
||||
});
|
||||
|
||||
it('uses stable classes to hide resource table columns on mobile', function () {
|
||||
$view = file_get_contents(resource_path('views/livewire/project/resource/index.blade.php'));
|
||||
$css = file_get_contents(resource_path('css/app.css'));
|
||||
|
||||
expect($view)
|
||||
->toContain('class="resource-type"')
|
||||
->toContain('class="resource-server"')
|
||||
->toContain('class="resource-type truncate')
|
||||
->toContain('class="resource-server truncate')
|
||||
->toContain('class="mobile-resource-domain min-w-0"');
|
||||
|
||||
expect($css)
|
||||
->toContain('.environment-resource-grid .resource-type,')
|
||||
->toContain('.environment-resource-grid .resource-server')
|
||||
->toContain('.environment-resource-grid .mobile-resource-domain')
|
||||
->not->toContain('.environment-resource-grid > :nth-child(2),')
|
||||
->not->toContain('.environment-resource-grid > :nth-child(5)');
|
||||
});
|
||||
Reference in new issue
Block a user