2015-04-03 3 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

Это выглядит как метеор огурца регрессии. Я сейчас переписываю огурец, ожидаю, что эта проблема исчезнет в следующем выпуске.

Смежные вопросы