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

Codeception test fails (BlogPageCest: Blog page works) #440

Open
arogachev opened this issue Feb 11, 2022 · 2 comments
Open

Codeception test fails (BlogPageCest: Blog page works) #440

arogachev opened this issue Feb 11, 2022 · 2 comments
Assignees
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug type:test Test

Comments

@arogachev
Copy link
Contributor

What steps will reproduce the problem?

./vendor/bin/codecept run

What is the expected result?

No errors.

What do you get instead?

1) BlogPageCest: Blog page works.
 Test  tests/Acceptance/BlogPageCest.php:testBlogPage
 Step  See "No records"
 Fail  Failed asserting that  on page /blog

There are 3 records at blog page.

Additional info

Q A
Version current master
PHP version
image: yiisoftware/yii-php:8.0-apache
Operating system
image: yiisoftware/yii-php:8.0-apache
@arogachev arogachev added the type:bug Bug label Feb 11, 2022
@arogachev arogachev self-assigned this Feb 11, 2022
@vjik
Copy link
Member

vjik commented Feb 12, 2022

Need clear database before run tests

@samdark
Copy link
Member

samdark commented Feb 12, 2022

Either current tests should do a cleanup or we should adjust the command needed to run tests. I think doing cleanup is better.

@samdark samdark added type:test Test status:ready for adoption Feel free to implement this issue. labels Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug type:test Test
Projects
None yet
Development

No branches or pull requests

3 participants