@@ -529,63 +529,6 @@ export class Diagnostics {
529
529
await rows
530
530
. filter ( { hasText : subject } )
531
531
. waitFor ( { state : 'visible' , timeout : VISIBILITY_TIMEOUT } ) ;
532
-
533
- // for (const row of Array.from(rows)) {
534
- // // Get the first cell (Subject column)
535
- // const firstCell = row.querySelector('.data-table__td');
536
- // if (!firstCell) {
537
- // continue;
538
- // }
539
-
540
- // // Find the subject text element
541
- // const subjectElement = firstCell.querySelector('.ydb-subject-with-avatar__subject');
542
- // if (!subjectElement) {
543
- // continue;
544
- // }
545
-
546
- // // Check if the subject text contains the search text
547
- // const subjectText = subjectElement.textContent || '';
548
- // if (subjectText.includes(searchText)) {
549
- // return true;
550
- // }
551
- // }
552
-
553
532
return true ;
554
533
}
555
-
556
- // export function isSubjectInRightsTable(searchText: string): boolean {
557
- // // Find the rights table
558
- // const rightsTable = document.querySelector(
559
- // '.ydb-resizeable-data-table.ydb-access-rights__rights-table',
560
- // );
561
- // if (!rightsTable) {
562
- // return false;
563
- // }
564
-
565
- // // Find all rows in the table
566
- // const rows = rightsTable.querySelectorAll('.data-table__row');
567
-
568
- // // Check each row
569
- // for (const row of Array.from(rows)) {
570
- // // Get the first cell (Subject column)
571
- // const firstCell = row.querySelector('.data-table__td');
572
- // if (!firstCell) {
573
- // continue;
574
- // }
575
-
576
- // // Find the subject text element
577
- // const subjectElement = firstCell.querySelector('.ydb-subject-with-avatar__subject');
578
- // if (!subjectElement) {
579
- // continue;
580
- // }
581
-
582
- // // Check if the subject text contains the search text
583
- // const subjectText = subjectElement.textContent || '';
584
- // if (subjectText.includes(searchText)) {
585
- // return true;
586
- // }
587
- // }
588
-
589
- // return false;
590
- // }
591
534
}
0 commit comments