File tree Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -2713,52 +2713,6 @@ class ClientSelectorGenerator {
27132713 }
27142714 }
27152715
2716- const testId = element . getAttribute ( "data-testid" ) ;
2717- if ( testId && ! addPositionToAll ) {
2718- const isCommon = this . isAttributeCommonAcrossLists (
2719- element ,
2720- "data-testid" ,
2721- testId ,
2722- otherListElements
2723- ) ;
2724- if ( isCommon ) {
2725- return `${ tagName } [@data-testid='${ testId } ']` ;
2726- }
2727- }
2728-
2729- if ( element . id && ! element . id . match ( / ^ \d / ) && ! addPositionToAll ) {
2730- const isCommon = this . isAttributeCommonAcrossLists (
2731- element ,
2732- "id" ,
2733- element . id ,
2734- otherListElements
2735- ) ;
2736- if ( isCommon ) {
2737- return `${ tagName } [@id='${ element . id } ']` ;
2738- }
2739- }
2740-
2741- if ( ! addPositionToAll ) {
2742- for ( const attr of Array . from ( element . attributes ) ) {
2743- if (
2744- attr . name . startsWith ( "data-" ) &&
2745- attr . name !== "data-testid" &&
2746- attr . name !== "data-mx-id" &&
2747- attr . value
2748- ) {
2749- const isCommon = this . isAttributeCommonAcrossLists (
2750- element ,
2751- attr . name ,
2752- attr . value ,
2753- otherListElements
2754- ) ;
2755- if ( isCommon ) {
2756- return `${ tagName } [@${ attr . name } ='${ attr . value } ']` ;
2757- }
2758- }
2759- }
2760- }
2761-
27622716 const position = this . getSiblingPosition ( element , parent ) ;
27632717
27642718 if ( addPositionToAll || classes . length === 0 ) {
You can’t perform that action at this time.
0 commit comments