Xolvio Cucumber - 在控制台中获取错误,但所有测试都通过 [英] Xolvio Cucumber - Getting errors in console yet all tests are passing

查看:289
本文介绍了Xolvio Cucumber - 在控制台中获取错误,但所有测试都通过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码。看起来我的测试通过,但我在控制台中遇到了大量的错误。这是怎么回事?我的测试是否是非确定性的并被重新运行?如果是,如何防止错误?

I have the following code. It seems like my tests pass, but I get tons of errors in my console. What's going on? Are my tests non-deterministic and being re-run? If so how do I prevent the errors?

login.feature:

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

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', 'newuser@test.com').
        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);
    });

推荐答案

这看起来像流星黄瓜回归。我正在重写黄瓜,期望这个问题在下一版本中消失。

This looks like a meteor-cucumber regression. I'm in the process of rewriting cucumber, expect this problem to go away in the next release.

这篇关于Xolvio Cucumber - 在控制台中获取错误,但所有测试都通过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆