feat: complete image upload to entry test
enhance entry creation test to select existing images and submit
This commit is contained in:
parent
33688b55be
commit
b0fc008530
1 changed files with 8 additions and 2 deletions
|
|
@ -59,8 +59,14 @@ class CreateEntryAdminTest extends DuskTestCase
|
||||||
->click('#featured-picker-button')
|
->click('#featured-picker-button')
|
||||||
->waitForText('Select an existing image')
|
->waitForText('Select an existing image')
|
||||||
->click('.fi-select-input-btn')
|
->click('.fi-select-input-btn')
|
||||||
->keys('.fi-select-input-btn', '{enter}')
|
->pause(2000)
|
||||||
->pause(10000),
|
->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
|
1000 // Custom pause time for this test
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue