TestingWithFrank/Frank

false pass when simulator rotation broken

Opened this issue · 0 comments

The AXAPI AppleScript fails hard when your iOS Simulator isn't running in the English locale. (I'd need menu item "Inicio" of menu item "Hardware" of process "Simulador iOS" for the lookup to work.)

No big surprise there; I can bug report that if you care to do anything about it.

But what is surprising is that I get a flawless pass using the stock "my first feature" when absolutely no rotation has occurred in the simulator:

% cucumber
Feature: 
  As an iOS developer
  I want to have a sample feature file
  So I can see what my next step is in the wonderful world of Frank/Cucumber testing

  Scenario:                                             # features/my_first.feature:6
      Rotating the simulator for demonstration purposes
71:158: execution error: System Events got an error: Can’t get menu item "Home" of menu "Hardware" of menu bar of process "iPhone Simulator". (-1728)
    Given I launch the app                              # features/step_definitions/launch_steps.rb:5
    Given the device is in landscape orientation        # frank-cucumber-1.1.12/lib/frank-cucumber/core_frank_steps.rb:117
    Given the device is in portrait orientation         # frank-cucumber-1.1.12/lib/frank-cucumber/core_frank_steps.rb:117
    Given the device is in landscape orientation        # frank-cucumber-1.1.12/lib/frank-cucumber/core_frank_steps.rb:117
    Given the device is in portrait orientation         # frank-cucumber-1.1.12/lib/frank-cucumber/core_frank_steps.rb:117

1 scenario (1 passed)
5 steps (5 passed)
0m4.602s

It was in portrait the whole time, and the rotation actually failed to work. Shouldn't at least some of those have failed?