demo icon indicating copy to clipboard operation
demo copied to clipboard

BlogPageCest test fails

Open sankaest opened this issue 3 years ago • 3 comments

What steps will reproduce the problem?

  1. composer install/update
  2. ./yii fixture/add 20
  3. dev-tool/dev/demo$ vendor/bin/codecept run

What is the expected result?

✔ BlogPageCest: Blog page works.

What do you get instead?

✖ BlogPageCest: Blog page works. BlogPageCest test fails, if DB is filled with any sample data (eg, during istallation: ./yii fixture/add 20).

Additional info (from terminal)

There was 1 failure:

  1. BlogPageCest: Blog page works. Test tests/Acceptance/BlogPageCest.php:testBlogPage Step Am on page "/signup" Fail Failed asserting that on page /blog --> Yii Demo - Blog Yii Demo Blog Comments Feed Users Contact Swagger Language English Русский Login Signup Blog Showing 3 out of 22 posts Rem in et aut aut earum cumque. May, 27 by Federico6643And he got up and throw us, with the bread-knife.' The March Hare interrupted, yawning. 'I'm getting tired of [Content too long to display. See complete response in '.../dev/demo/runtime/tests/_output/' directory] --> contains "No records".
Q A
Version dev
PHP version PHP 8.0.16
Operating system Ubuntu 20.04

Need also more research, why we see failure: Step Am on page "/signup", despite in file BlogPageCest.php in function _before() we have: $I->amOnPage('/blog');

sankaest avatar Jun 08 '22 22:06 sankaest

https://github.com/yiisoft/demo/pull/461 doesn't fix the problem. The PR adds a command that just clears DB tables.

vjik avatar Jun 19 '22 06:06 vjik

What is the error? The same?

sankaest avatar Jun 19 '22 21:06 sankaest

What is the error? The same?

yes.

vjik avatar Jun 20 '22 05:06 vjik