2015-04-03 25 views
2

我有以下代碼。這似乎是我的測試通過,但我的控制檯中出現大量錯誤。這是怎麼回事?我的測試是不確定的並且正在重新運行?如果是這樣,我如何防止錯誤?Xolvio Cucumber - 在控制檯中發現錯誤,但所有測試都通過

login.feature:

Feature: User authentication 

    As a user 
    I want to be able to login 
    So that I can have all the good stuff that comes with user accounts 

    Background: 
    Given I am signed out 

    Scenario: A user can sign up with valid information 
    Given I am on the home page 
    When I open the sign up modal 
    And I enter my desired authentication information 
    Then I should be logged in 

step_definitions.js

this.When(/^I open the sign up modal$/, function (callback) { 
     // Write code here that turns the phrase above into concrete actions 
     helper.world.browser. 
     click('[data-ion-modal="signup"]'). 
     waitForVisible('.#signup-form', 2000). 
     call(callback); 
    }); 

    this.When(/^I enter my desired authentication information$/, function (callback) { 
     // Write code here that turns the phrase above into concrete actions 
     helper.world.browser. 
     waitForExist('#signup-form', 2000). 
     waitForVisible('#signup-form'). 
     setValue('#signup-email', '[email protected]'). 
     setValue('#signup-password', 'password'). 
     submitForm('#signup-form'). 
     call(callback); 
    }); 

    this.Then(/^I should be logged in$/, function (callback) { 
     // Write code here that turns the phrase above into concrete actions 
     helper.world.browser. 
     waitForExist('.tabs', 2000). 
     waitForVisible('.tabs'). 
     call(callback); 
    }); 

enter image description here

回答

0

這看起來像流星黃瓜迴歸。我正在重寫黃瓜,期待這個問題在下一個版本中消失。

相關問題