Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false pass when simulator rotation broken #7

Open
jeremy-w opened this issue Aug 2, 2013 · 0 comments
Open

false pass when simulator rotation broken #7

jeremy-w opened this issue Aug 2, 2013 · 0 comments

Comments

@jeremy-w
Copy link

jeremy-w commented Aug 2, 2013

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant