Doing multi-sorting in an Angular Ag Grid by pressing shift via Cypress #14996
              
                Unanswered
              
          
                  
                    
                      HaNdyMaN89
                    
                  
                
                  asked this question in
                Component Testing
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, everyone.
I am trying to multisort in an ag-grid which is combined with Web Components (and thus shadow dom) within an Angular app via cypress. Essentially I just have to hold shift while I click the sorting button on a second column after already sorting on one other column. But no matter what I tried I either don't click the second column sorting or just switch to sorting by the second column and forget the first one. I know that the shadow dom causes pain for automated software to find, click and other actions on the page.
I tried the following things (the then jquery workaround is needed, because otherwise cypress fails with "Timed out retrying: Illegal invocation" if I just click() the xpath directly, because of the shadow dom. I tried all bellow combinations while replacing the then promise click with https://github.com/abramenal/cypress-shadow-dom#shadowClick without a then promise, still no luck):
Using https://github.com/abramenal/cypress-shadow-dom . Does not work, because https://github.com/abramenal/cypress-shadow-dom does not have the "shiftKey" option
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions