mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
Limit enter/space deploy handlers to the card root with .self so nested focusable content no longer triggers deploy. Hide the environments table resource count on mobile via a stable class instead of nth-child.
11 lines
465 B
PHP
11 lines
465 B
PHP
<?php
|
|
|
|
it('only deploys from keyboard events on the resource card itself', function () {
|
|
$view = file_get_contents(resource_path('views/livewire/project/new/select.blade.php'));
|
|
|
|
expect(substr_count($view, '@keydown.enter.self.prevent='))->toBe(4)
|
|
->and(substr_count($view, '@keydown.space.self.prevent='))->toBe(4)
|
|
->and($view)->not->toContain('@keydown.enter.prevent=')
|
|
->and($view)->not->toContain('@keydown.space.prevent=');
|
|
});
|