Giter Club home page Giter Club logo

Comments (5)

rezen avatar rezen commented on May 18, 2024 1

I've had similar symptoms with custom helpers. The when the test passes the message is OK, if it fails I get no feedback with errors.

from codeceptjs.

DavertMik avatar DavertMik commented on May 18, 2024

I have got the impression that is has to do with your new handling of errors in the scenario.js

That maybe it. It was important to make promise-based assertions work, didn't check for non-promises

from codeceptjs.

DavertMik avatar DavertMik commented on May 18, 2024

This is pretty rare case, as if you

a) not using generator function
b) use yield before performing assertion

everything works fine. Anyway, going to fix that

from codeceptjs.

acthp avatar acthp commented on May 18, 2024

Also hitting this. It seems worse than this description, though: no assertions work after the 1st yield. So it doesn't work under any circumstance where you've queried the page for data and need to assert its value.

from codeceptjs.

APshenkin avatar APshenkin commented on May 18, 2024

Tested in v0.6.3

Before((I, authPage) => {
   I.amOnPage(authPage.url);
});

Scenario.only('foo test', function*(I) {
    var bla = yield I.grabTextFrom('//button')
    assert.equal(bla, 'foo');
});


'Enter' == 'foo'
      + expected - actual

      -Enter
      +foo

Everything works as expected. Closing this issue

from codeceptjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.