Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlogPageCest test fails #458

Open
sankaest opened this issue Jun 8, 2022 · 3 comments
Open

BlogPageCest test fails #458

sankaest opened this issue Jun 8, 2022 · 3 comments

Comments

@sankaest
Copy link
Contributor

sankaest commented Jun 8, 2022

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');

@vjik
Copy link
Member

vjik commented Jun 19, 2022

#461 doesn't fix the problem. The PR adds a command that just clears DB tables.

@vjik vjik reopened this Jun 19, 2022
@sankaest
Copy link
Contributor Author

What is the error? The same?

@vjik
Copy link
Member

vjik commented Jun 20, 2022

What is the error? The same?

yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants