AnsweredAssumed Answered

Behat test vs select2

Question asked by Mateusz Antkowiak on Aug 27, 2018
Latest reply on Sep 3, 2018 by Ben Selby


We are curently working on writing Behat based tests for Sugar 8.x and We have some issues with finding proper css selectors and writing contexts for inputs that are using select2 library. We were able to write contexts that allow us to set up a value for a certain field but only for module fields. More problematic is writing contexts for testing filtering on module list view. Almost all fields generated while creating a new filter have random ids and identical classes whitch makes them indistinguishable.


Has anyone ever had similar issues and has anyone found a reliable way to deal with select2 fields?