Comments (5)
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.
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.
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.
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.
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)
- Playwright to codecept locator conversion HOT 3
- Playwright doc for grabTrafficUrl malformatted
- codeceptjs run-workers X can do with sequencing improvements HOT 2
- run-multiple reporting of failed steps not working HOT 4
- run-multiple execution creates output sub folders with alphanumeric value instead of browser names HOT 9
- runOnAndroid/runOnIOS blocks are stuck after upgrading CodeCept from 3.4.1 to 3.5.15 and Appium From 1 to 2.
- quickstart instructions crash HOT 5
- Not able to do file download validation with run-multiple execution HOT 1
- I.fillField and I.see is not working when we do the cross browser testing HOT 2
- While using run-multiple for parallel execution, method I.dontSeeElement gives error Cannot read properties of undefined (reading 'react') HOT 7
- in BDD or Gherkin mode, the `After` is not synchronous where next scenario starts (while the `After` is still executing) HOT 5
- It takes a long time to finish the process after testing
- Facing issues in fetch the element with data-testid HOT 6
- In codeceptJS version 3.6.0, an error occurred when using the pause() method HOT 2
- Scenario and step timeouts are not working as expected HOT 1
- Problem with launching test with an exact tag
- `I.waitForURL()` does not fail the test when its timeout happens
- Healer priorities and steps are not respected
- Webdriver and coverage
- "undefined undefined" error when bdd:init HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeceptjs.