You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've set up automated testing using Selenium and codeception, but unfortunately some of the tests fail due to the "see" action on selenium excepting apostrophes (and likely other characters).
_404Cept.php_
<?php
$I = new WebGuy($scenario);
$I->wantTo('See a friendly 404 error message for wrong url');
$I->amOnPage('/blahblahblah');
$I->see("The page you requested couldn't be found!",'h1');
Suite acceptance started
Trying to see a friendly 404 error message for wrong url (404Cept.php) - Failed
Suite functional started
Time: 7 seconds, Memory: 12.75Mb
There was 1 failure:
Couldn't see a friendly 404 error message for wrong url (404Cept.php)
Guy couldn't see ["The page you requested couldn't be found!","h1"] 'h1' selector For more details look for page snapshot in the log directory
Failed asserting that 'SEERveyThe page you requested couldn't be found!' contains _"The page you requested couldn't be found!"_.
I see ["The page you requested couldn't be found!","h1"]
I am on page "/blahblahblah"
I want to See a friendly 404 error message for wrong url
FAILURES!
Tests: 1, Assertions: 0, Failures: 1.
However, if I remove the apostrophe (and any content after it) the test correctly identifies the content:
_404Cept.php_
<?php
$I = new WebGuy($scenario);
$I->wantTo('See a friendly 404 error message for wrong url');
$I->amOnPage('/blahblahblah');
$I->see("The page you requested couldn",'h1');
Suite unit started
Suite acceptance started
Trying to see a friendly 404 error message for wrong url (404Cept.php) - Ok
Suite functional started
Time: 8 seconds, Memory: 12.50Mb
OK (1 test, 0 assertions)
The text was updated successfully, but these errors were encountered:
I've set up automated testing using Selenium and codeception, but unfortunately some of the tests fail due to the "see" action on selenium excepting apostrophes (and likely other characters).
_404Cept.php_
Suite acceptance started
Trying to see a friendly 404 error message for wrong url (404Cept.php) - Failed
Suite functional started
Time: 7 seconds, Memory: 12.75Mb
There was 1 failure:
Couldn't see a friendly 404 error message for wrong url (404Cept.php)
Guy couldn't see ["The page you requested couldn't be found!","h1"] 'h1' selector For more details look for page snapshot in the log directory
Failed asserting that 'SEERveyThe page you requested couldn't be found!' contains _"The page you requested couldn't be found!"_.
FAILURES!
Tests: 1, Assertions: 0, Failures: 1.
However, if I remove the apostrophe (and any content after it) the test correctly identifies the content:
_404Cept.php_
Suite unit started
Suite acceptance started
Trying to see a friendly 404 error message for wrong url (404Cept.php) - Ok
Suite functional started
Time: 8 seconds, Memory: 12.50Mb
OK (1 test, 0 assertions)
The text was updated successfully, but these errors were encountered: