File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed
Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -502,20 +502,6 @@ describe('Playwright', function () {
502502 assert . equal ( formContents ( 'age' ) , 'adult' )
503503 } )
504504
505- it ( 'should select option using css locator' , async ( ) => {
506- await I . amOnPage ( '/form/select' )
507- await I . selectOption ( { css : '#age' } , '13-21' )
508- await I . click ( 'Submit' )
509- assert . equal ( formContents ( 'age' ) , 'teenage' )
510- } )
511-
512- it ( 'should select option using JSON string css locator' , async ( ) => {
513- await I . amOnPage ( '/form/select' )
514- await I . selectOption ( '{"css": "#age"}' , '21-60' )
515- await I . click ( 'Submit' )
516- assert . equal ( formContents ( 'age' ) , 'adult' )
517- } )
518-
519505 it ( 'should select option using role locator' , async ( ) => {
520506 await I . amOnPage ( '/form/select' )
521507 // Select elements have role="combobox" in accessibility tree
Original file line number Diff line number Diff line change @@ -525,6 +525,15 @@ export function tests() {
525525 } )
526526 } )
527527
528+ describe ( '#selectOption with JSON string locator' , ( ) => {
529+ it ( 'should select option using JSON string css locator' , async ( ) => {
530+ await I . amOnPage ( '/form/select' )
531+ await I . selectOption ( '{"css": "#age"}' , '21-60' )
532+ await I . click ( 'Submit' )
533+ assert . equal ( formContents ( 'age' ) , 'adult' )
534+ } )
535+ } )
536+
528537 describe ( '#executeScript' , ( ) => {
529538 it ( 'should execute synchronous script' , async ( ) => {
530539 await I . amOnPage ( '/' )
You can’t perform that action at this time.
0 commit comments