Content-Length: 231220 | pFad | http://github.com/Codeception/Codeception/issues/6820

D0 Flaky issue where $I->canSee() fails incorrectly · Issue #6820 · Codeception/Codeception · GitHub
Skip to content

Flaky issue where $I->canSee() fails incorrectly #6820

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

Open
adnweedon opened this issue Jan 22, 2025 · 1 comment
Open

Flaky issue where $I->canSee() fails incorrectly #6820

adnweedon opened this issue Jan 22, 2025 · 1 comment

Comments

@adnweedon
Copy link

I've had an occasional flaky issue where a step fails because it can't see a string, but the failure output very obviously has the string on the page!

For example:

Image

But the output shows:

Image

which very clearly does have "Funds" on the page!

Is this something that anyone else has seen - does anyone have any idea how I can sort it?

@cgsmith
Copy link

cgsmith commented Feb 13, 2025

Try running with the --debug option. You should also be able to view the failure in the _output folder. Take a look at my functional test output as an example:

My Test:

    public function checkSuccessVerification(FunctionalTester $I)
    {
        $I->amOnRoute('site/verify-email', ['token' => '4ch0qbfhvWwkcuWqjN8SWRq72SOw1KYT_1548675330']);
        $I->canSee('Your email has been confirmed! Upon our approval you will receive a welcome email.');
        $I->canSee('Sales Agent portal!', 'h1');

        $I->seeRecord('common\models\User', [
           'email' => 'test@mail.com',
           'status' => \common\models\User::STATUS_VERIFIED
        ]);
    }

Image

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Codeception/Codeception/issues/6820

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy