File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ const COLUMN_SORT_ICON_TEST_ID = "SouthRoundedIcon";
152
152
* @param tab - the tab to check
153
153
* @returns - true if the test passes and false if the test fails
154
154
*/
155
+ // eslint-disable-next-line sonarjs/cognitive-complexity -- Complex code just for diagnostic will be removed later
155
156
export async function testSortAzul (
156
157
page : Page ,
157
158
tab : TabDescription
@@ -200,6 +201,27 @@ export async function testSortAzul(
200
201
await expect ( sortIconLocator ) . toHaveCSS ( "opacity" , "0" ) ;
201
202
}
202
203
// Click to sort
204
+ console . log (
205
+ await page . evaluate ( ( ) => {
206
+ const obstructingElement = document . querySelector (
207
+ ".MuiPaper-root.MuiPaper-panel.MuiPaper-rounded.css-c8mee3"
208
+ ) ;
209
+ const obstructingElementRect =
210
+ obstructingElement ?. getBoundingClientRect ( ) ;
211
+ const obstructingElementRectString = obstructingElementRect
212
+ ? obstructingElementRect . x +
213
+ "," +
214
+ obstructingElementRect . y +
215
+ ":" +
216
+ obstructingElementRect . width +
217
+ "," +
218
+ obstructingElementRect . height
219
+ : "No Element" ;
220
+ console . log (
221
+ "test " + ! ! obstructingElement + ", " + obstructingElementRectString
222
+ ) ;
223
+ } )
224
+ ) ;
203
225
await columnSortLocator . click ( ) ;
204
226
// Expect the first element of the table to still be visible (may not have text)
205
227
await expect (
You can’t perform that action at this time.
0 commit comments