@@ -27,18 +27,18 @@ test('Workflow task without JSON Schema [v2]', async ({ page, workflow }) => {
2727
2828 // String property
2929 await addPropertyBtn . click ( ) ;
30- await tab . getByRole ( 'textbox' , { name : 'Arg name' } ) . fill ( 'k1' ) ;
31- await tab . getByRole ( 'textbox' , { name : 'Argument default value' } ) . fill ( 'foo' ) ;
30+ await tab . getByRole ( 'textbox' , { name : 'Argument name' } ) . fill ( 'k1' ) ;
31+ await tab . getByRole ( 'textbox' , { name : 'Argument value' } ) . fill ( 'foo' ) ;
3232
3333 // Number property
3434 await addPropertyBtn . click ( ) ;
35- await tab . getByRole ( 'textbox' , { name : 'Arg name' } ) . nth ( 1 ) . fill ( 'k2' ) ;
35+ await tab . getByRole ( 'textbox' , { name : 'Argument name' } ) . nth ( 1 ) . fill ( 'k2' ) ;
3636 await tab . getByRole ( 'combobox' ) . nth ( 1 ) . selectOption ( 'Number' ) ;
3737 await tab . getByRole ( 'spinbutton' ) . fill ( '42' ) ;
3838
3939 // Boolean property
4040 await addPropertyBtn . click ( ) ;
41- await tab . getByRole ( 'textbox' , { name : 'Arg name' } ) . nth ( 2 ) . fill ( 'k3' ) ;
41+ await tab . getByRole ( 'textbox' , { name : 'Argument name' } ) . nth ( 2 ) . fill ( 'k3' ) ;
4242 await tab . getByRole ( 'combobox' ) . nth ( 2 ) . selectOption ( 'Boolean' ) ;
4343 await expect (
4444 tab . getByRole ( 'combobox' ) . nth ( 2 ) . getByRole ( 'option' , { selected : true } )
@@ -54,40 +54,40 @@ test('Workflow task without JSON Schema [v2]', async ({ page, workflow }) => {
5454
5555 // Object property
5656 await addPropertyBtn . click ( ) ;
57- await tab . getByRole ( 'textbox' , { name : 'Arg name' } ) . nth ( 4 ) . fill ( 'k4' ) ;
57+ await tab . getByRole ( 'textbox' , { name : 'Argument name' } ) . nth ( 4 ) . fill ( 'k4' ) ;
5858 await tab . getByRole ( 'combobox' ) . nth ( 5 ) . selectOption ( 'Object' ) ;
5959 await tab . locator ( '.accordion-button' ) . click ( ) ;
6060 const objectContainer = tab . locator ( '.accordion-body' ) ;
6161
6262 // Add nested array
6363 objectContainer . getByRole ( 'button' , { name : 'Add property' } ) . click ( ) ;
64- await objectContainer . getByRole ( 'textbox' , { name : 'Arg name' } ) . fill ( 'k5' ) ;
64+ await objectContainer . getByRole ( 'textbox' , { name : 'Argument name' } ) . fill ( 'k5' ) ;
6565 await objectContainer . getByRole ( 'combobox' ) . selectOption ( 'Array' ) ;
6666 await objectContainer . locator ( '.accordion-button' ) . click ( ) ;
6767 const arrayContainer = objectContainer . locator ( '.accordion-body' ) ;
6868
6969 // Add array string property
7070 arrayContainer . getByRole ( 'button' , { name : 'Add property' } ) . click ( ) ;
71- await expect ( arrayContainer . getByRole ( 'textbox' , { name : 'Arg name' } ) ) . toHaveCount ( 0 ) ;
72- await arrayContainer . getByRole ( 'textbox' , { name : 'Argument default value' } ) . fill ( 'bar' ) ;
71+ await expect ( arrayContainer . getByRole ( 'textbox' , { name : 'Argument name' } ) ) . toHaveCount ( 0 ) ;
72+ await arrayContainer . getByRole ( 'textbox' , { name : 'Argument value' } ) . fill ( 'bar' ) ;
7373
7474 // Add nested object
7575 arrayContainer . getByRole ( 'button' , { name : 'Add property' } ) . click ( ) ;
76- await expect ( arrayContainer . getByRole ( 'textbox' , { name : 'Arg name' } ) ) . toHaveCount ( 0 ) ;
76+ await expect ( arrayContainer . getByRole ( 'textbox' , { name : 'Argument name' } ) ) . toHaveCount ( 0 ) ;
7777 await arrayContainer . getByRole ( 'combobox' ) . nth ( 1 ) . selectOption ( 'Object' ) ;
7878 await arrayContainer . locator ( '.accordion-button' ) . click ( ) ;
7979 const childObjectContainer = arrayContainer . locator ( '.accordion-body' ) ;
8080
8181 // Add child object property
8282 childObjectContainer . getByRole ( 'button' , { name : 'Add property' } ) . click ( ) ;
83- await childObjectContainer . getByRole ( 'textbox' , { name : 'Arg name' } ) . fill ( 'k6' ) ;
84- await childObjectContainer . getByRole ( 'textbox' , { name : 'Argument default value' } ) . fill ( 'k6' ) ;
83+ await childObjectContainer . getByRole ( 'textbox' , { name : 'Argument name' } ) . fill ( 'k6' ) ;
84+ await childObjectContainer . getByRole ( 'textbox' , { name : 'Argument value' } ) . fill ( 'k6' ) ;
8585
8686 // Add duplicated child object property (invalid)
8787 childObjectContainer . getByRole ( 'button' , { name : 'Add property' } ) . click ( ) ;
88- await childObjectContainer . getByRole ( 'textbox' , { name : 'Arg name' } ) . nth ( 1 ) . fill ( 'k6' ) ;
88+ await childObjectContainer . getByRole ( 'textbox' , { name : 'Argument name' } ) . nth ( 1 ) . fill ( 'k6' ) ;
8989 await childObjectContainer
90- . getByRole ( 'textbox' , { name : 'Argument default value' } )
90+ . getByRole ( 'textbox' , { name : 'Argument value' } )
9191 . nth ( 1 )
9292 . fill ( 'k6' ) ;
9393 } ) ;
@@ -115,8 +115,8 @@ test('Workflow task without JSON Schema [v2]', async ({ page, workflow }) => {
115115 await page . reload ( ) ;
116116 await workflow . selectTask ( taskName ) ;
117117 await expect ( tab . getByLabel ( 'Remove property' ) ) . toHaveCount ( 8 ) ;
118- await expect ( tab . getByRole ( 'textbox' , { name : 'Arg name' } ) . first ( ) ) . toHaveValue ( 'k1' ) ;
119- await expect ( tab . getByRole ( 'textbox' , { name : 'Argument default value' } ) . first ( ) ) . toHaveValue (
118+ await expect ( tab . getByRole ( 'textbox' , { name : 'Argument name' } ) . first ( ) ) . toHaveValue ( 'k1' ) ;
119+ await expect ( tab . getByRole ( 'textbox' , { name : 'Argument value' } ) . first ( ) ) . toHaveValue (
120120 'foo'
121121 ) ;
122122 await expect (
@@ -127,7 +127,7 @@ test('Workflow task without JSON Schema [v2]', async ({ page, workflow }) => {
127127 await objectContainer . locator ( '.accordion-button' ) . first ( ) . click ( ) ;
128128 const arrayContainer = objectContainer . locator ( '.accordion-body' ) ;
129129 await expect (
130- arrayContainer . getByRole ( 'textbox' , { name : 'Argument default value' } )
130+ arrayContainer . getByRole ( 'textbox' , { name : 'Argument value' } )
131131 ) . toHaveValue ( 'bar' ) ;
132132 } ) ;
133133
0 commit comments