diff --git a/tests/Browser/ModernBoardTest.php b/tests/Browser/ModernBoardTest.php index 10491f173..ac6b28fd4 100644 --- a/tests/Browser/ModernBoardTest.php +++ b/tests/Browser/ModernBoardTest.php @@ -1153,9 +1153,9 @@ function boardTraySampler(int $budgetMilliseconds): string $page->type($input, 'Won'); $page->keys($input, 'Enter'); $pointer->untilScript("document.querySelectorAll('[data-column-root=\"Won\"]').length === 1"); + $pointer->untilScript("document.querySelector('{$input}').offsetParent === null"); - expect($page->script("document.querySelector('{$input}').offsetParent === null"))->toBeTrue() - ->and($page->script("document.querySelector('{$input}').value"))->toBe(''); + expect($page->script("document.querySelector('{$input}').value"))->toBe(''); }); test('escape cancels the add column input without calling the host', function () {