From b0fc008530eb920669e1daf02d3d8ba80b538aff Mon Sep 17 00:00:00 2001 From: jon brookes Date: Mon, 5 Jan 2026 18:42:02 +0000 Subject: [PATCH] feat: complete image upload to entry test enhance entry creation test to select existing images and submit --- tests/Browser/CreateEntryAdminTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/Browser/CreateEntryAdminTest.php b/tests/Browser/CreateEntryAdminTest.php index 38ab34f..dc05e3b 100644 --- a/tests/Browser/CreateEntryAdminTest.php +++ b/tests/Browser/CreateEntryAdminTest.php @@ -59,8 +59,14 @@ class CreateEntryAdminTest extends DuskTestCase ->click('#featured-picker-button') ->waitForText('Select an existing image') ->click('.fi-select-input-btn') - ->keys('.fi-select-input-btn', '{enter}') - ->pause(10000), + ->pause(2000) + ->click('li:first-child') + ->waitForText('Submit') + ->clickAtXPath('//button[contains(., "Submit")]') + + ->waitForText('Edit TEST ENTRY') + ->click('#key-bindings-1'), + // ->pause(20000), 1000 // Custom pause time for this test ); });