ciselab / TestGenie

TestGenie - an IntelliJ plugin that natively integrates EvoSuite into the IDE. EvoSuite is an automated test suite generation tool using evolutionary algorithms. Used for research @ SERG, TU Delft.
MIT License
1 stars 0 forks source link

Fix UI test for Mac #109

Closed SergeyDatskiv closed 2 years ago

SergeyDatskiv commented 2 years ago

Describe the bug The user interface of IntelliJ is different on the Mac operating system, the difference causes some of the tests to fail because some of the UI elements are not found.

To Reproduce Steps to reproduce the behavior:

  1. Get a Mac.
  2. Launch the "Run IDE for UI Tests"
  3. Launch the UI test suite, for example, the settings one.
  4. You should see that it successfully opens the untitled project, however, it fails to open the settings panel because it can not find the "File" button.

As you can see, in the image below the toolbar menu on mac is located on the top and the UI test fails to find that. Furthermore, note how there is an Apple Logo which also skews all of the UI elements as the robot sees it.

Expected behavior The UI test should be able to enter the settings menu "preferences" on mac and be able to close the project through the file menu.

Screenshots

IntelliJOnMac

Additional context