onmyway133 / notes

:notebook_with_decorative_cover: Issues and solutions I found during development, mostly iOS
https://onmyway133.com/
MIT License
62 stars 4 forks source link

UITest push view controller #94

Open onmyway133 opened 8 years ago

onmyway133 commented 8 years ago

Need to sleep before tap !!!!

describe("forgot password screen") {
        beforeEach {
          sleep(1)
          app.buttons["Forgot password?"].tap()

        }

        it("should show screen") {
          expect(app.textFields["Username"].exists).to(beTrue())
          expect(app.buttons["CONTINUE"].enabled).to(beTrue())
        }
      }
onmyway133 commented 8 years ago

Need to sleep after launch

beforeEach {
        app.launch()
        sleep(1)
      }