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

DontSee-Assertion fails, because selector is not available on page (1.6.4) #447

Closed
schmunk42 opened this issue Jul 19, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@schmunk42
Copy link
Contributor

commented Jul 19, 2013

Version: Codeception 1.6.4

Problem

DontSee-Assertion fails, because selector is not available on page

Assertion

$I->dontSee('Translation for widget #1 CWidget not found','.alert');

Actual Ouput

1) Couldn't create a widget translation in 0003-CreateWidgetTranslationCept.php
Guy unexpectedly managed to see "Translation for",".alert":
CSS or XPath '.alert' not found on page.

Expected Ouput

Test should pass, since the element is not on the page (CSS or XPath '.alert' not found on page.).

Notes

I reverted back to 1.6.2 where the assertion works "as expected" (for me). Failed build on travis-ci.

@DavertMik

This comment has been minimized.

Copy link
Member

commented Jul 21, 2013

Thanks, great that I can reproduce this on phundament.
Not sure what I really changed there to break it :(

@DavertMik

This comment has been minimized.

Copy link
Member

commented Aug 21, 2013

Ok, finally I'm getting this fixed. I tried to run phundament tests, but something goes wrong and I have more fails then expect.

Maybe it's because of new Guzzle 3.7.2?
I get:

Guzzle\Http\Exception\CurlException: [curl] 7: Failed connect to localhost:80; Connection refused [url] http://localhost/index-test.php?r=user%2Flogin&lang=en

I receive while I'm trying to: $I->amOnPage('?r=p3admin/default/overview&lang=en');

@DavertMik

This comment has been minimized.

Copy link
Member

commented Aug 21, 2013

Fixed in 1.6.6 (upcoming) and in 1.6 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.