@@ -25,10 +25,10 @@ test.describe("datagrid-web filtering single select", () => {
25
25
} ;
26
26
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
27
27
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
28
- const booleanSelect = ( ) => page . locator ( " .mx-name-drop_downFilter2" ) . getByRole ( " combobox") ;
28
+ const booleanSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter2[role=" combobox"]' ) ;
29
29
30
30
await booleanSelect ( ) . click ( ) ;
31
- await option ( "Yes" ) . click ( ) ;
31
+ await option ( "Yes" ) . click ( { delay : 1 } ) ;
32
32
const rowCount = await rows ( ) ;
33
33
await expect ( rowCount ) . toHaveCount ( 11 ) ;
34
34
const columnTexts = await column ( 3 ) . allTextContents ( ) ;
@@ -40,7 +40,7 @@ test.describe("datagrid-web filtering single select", () => {
40
40
return page . locator ( '.mx-name-dataGrid21 [role="row"]' ) ;
41
41
} ;
42
42
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
43
- const booleanSelect = ( ) => page . locator ( " .mx-name-drop_downFilter2" ) . getByRole ( " combobox") ;
43
+ const booleanSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter2[role=" combobox"]' ) ;
44
44
45
45
await booleanSelect ( ) . click ( ) ;
46
46
@@ -57,10 +57,10 @@ test.describe("datagrid-web filtering single select", () => {
57
57
} ;
58
58
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
59
59
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
60
- const booleanSelect = ( ) => page . locator ( " .mx-name-drop_downFilter2" ) . getByRole ( " combobox") ;
60
+ const booleanSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter2[role=" combobox"]' ) ;
61
61
62
62
await booleanSelect ( ) . click ( ) ;
63
- await option ( "Yes" ) . click ( ) ;
63
+ await option ( "Yes" ) . click ( { delay : 1 } ) ;
64
64
const rowCount = await rows ( ) ;
65
65
await expect ( rowCount ) . toHaveCount ( 11 ) ;
66
66
await expect ( await column ( 3 ) . allTextContents ( ) ) . toEqual (
@@ -80,10 +80,10 @@ test.describe("datagrid-web filtering single select", () => {
80
80
} ;
81
81
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
82
82
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
83
- const enumSelect = ( ) => page . locator ( " .mx-name-drop_downFilter1" ) . getByRole ( " combobox") ;
83
+ const enumSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter1[role=" combobox"]' ) ;
84
84
85
85
await enumSelect ( ) . click ( ) ;
86
- await option ( "Cyan" ) . click ( ) ;
86
+ await option ( "Cyan" ) . click ( { delay : 1 } ) ;
87
87
const rowCount = await rows ( ) ;
88
88
await expect ( rowCount ) . toHaveCount ( 6 ) ;
89
89
const columnTexts = await column ( 2 ) . allTextContents ( ) ;
@@ -96,10 +96,10 @@ test.describe("datagrid-web filtering single select", () => {
96
96
} ;
97
97
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
98
98
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
99
- const enumSelect = ( ) => page . locator ( " .mx-name-drop_downFilter1" ) . getByRole ( " combobox") ;
99
+ const enumSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter1[role=" combobox"]' ) ;
100
100
101
101
await enumSelect ( ) . click ( ) ;
102
- await option ( "Black" ) . click ( ) ;
102
+ await option ( "Black" ) . click ( { delay : 1 } ) ;
103
103
const rowCount = await rows ( ) ;
104
104
await expect ( rowCount ) . toHaveCount ( 9 ) ;
105
105
const columnTexts = await column ( 2 ) . allTextContents ( ) ;
@@ -112,12 +112,12 @@ test.describe("datagrid-web filtering single select", () => {
112
112
} ;
113
113
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
114
114
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
115
- const roleSelect = ( ) => page . locator ( " .mx-name-drop_downFilter3" ) . getByRole ( " combobox") ;
115
+ const roleSelect = ( ) => page . locator ( ' .mx-name-drop_downFilter3[role=" combobox"]' ) ;
116
116
117
117
const rowCount = await rows ( ) ;
118
118
await expect ( rowCount ) . toHaveCount ( 11 ) ;
119
119
await roleSelect ( ) . click ( ) ;
120
- await option ( "Trader" ) . click ( ) ;
120
+ await option ( "Trader" ) . click ( { delay : 1 } ) ;
121
121
const rowCount2 = await rows ( ) ;
122
122
await expect ( rowCount2 ) . toHaveCount ( 8 ) ;
123
123
const columnTexts = await column ( 4 ) . allTextContents ( ) ;
@@ -130,12 +130,12 @@ test.describe("datagrid-web filtering single select", () => {
130
130
} ;
131
131
const column = n => page . locator ( `[role="gridcell"]:nth-child(${ n } )` ) ;
132
132
const option = label => page . locator ( `[role="option"]:has-text("${ label } ")` ) ;
133
- const companySelect = ( ) => page . locator ( " .mx-name-drop_downFilter4" ) . getByRole ( " combobox") ;
133
+ const companySelect = ( ) => page . locator ( ' .mx-name-drop_downFilter4[role=" combobox"]' ) ;
134
134
135
135
const rowCount = await rows ( ) ;
136
136
await expect ( rowCount ) . toHaveCount ( 11 ) ;
137
137
await companySelect ( ) . click ( ) ;
138
- await option ( "PETsMART Inc" ) . click ( ) ;
138
+ await option ( "PETsMART Inc" ) . click ( { delay : 1 } ) ;
139
139
const rowCount2 = await rows ( ) ;
140
140
await expect ( rowCount2 ) . toHaveCount ( 9 ) ;
141
141
const columnTexts = await column ( 5 ) . allTextContents ( ) ;
0 commit comments