From a185b532acbe5246ac3f71aca30ff0e7e3f60773 Mon Sep 17 00:00:00 2001 From: Philipp Kastner Date: Fri, 22 Dec 2023 14:52:14 +0000 Subject: [PATCH] add a test for select by value --- test/helper/Playwright_test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/helper/Playwright_test.js b/test/helper/Playwright_test.js index 3ed3cdc89..becffc010 100644 --- a/test/helper/Playwright_test.js +++ b/test/helper/Playwright_test.js @@ -460,6 +460,12 @@ describe('Playwright', function () { await I.click('Submit'); assert.equal(formContents('age'), 'adult'); }); + it('should select option by value', async () => { + await I.amOnPage('/form/select'); + await I.selectOption('Select your age', 'adult'); + await I.click('Submit'); + assert.equal(formContents('age'), 'adult'); + }) }); describe('#_locateClickable', () => {