diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-30 17:42:30 +0200 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2013-09-30 17:42:30 +0200 |
commit | 46c942c6b38120755983286313a6187078ffe27c (patch) | |
tree | b9bbfe971c904b7a41a8ff4c517b782928e2947a /tests/FunctionalTests/tickets/tests | |
parent | 064053a81f4ce4e9cef5e8984dadfe7cca049fb9 (diff) |
Fix some functionaltests of the ticket/ series
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
3 files changed, 21 insertions, 8 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php index 515bc275..dedb491f 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket703TestCase.php @@ -9,12 +9,20 @@ class Ticket703TestCase extends PradoGenericSeleniumTest // Start with an empty log $this->click($base.'ctl2'); // Wait for callback to be lanched - $this->pause(2000); + $this->pause(1000); $this->assertText($base.'logBox', ""); + $this->type($base.'logMessage', "Test of prado logging system"); $this->click($base.'ctl0'); $this->pause(800); $this->click($base.'ctl1'); $this->assertTextPresent($base.'logBox', "Test of prado logging system"); + + // Clean log for next run + $this->click($base.'ctl2'); + // Wait for callback to be lanched + $this->pause(1000); + $this->assertText($base.'logBox', ""); + } }
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php index e340306a..c71cb0a8 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php @@ -14,14 +14,19 @@ class Ticket719TestCase extends PradoGenericSeleniumTest $this->assertVisible("${base}ctl0", 'Required'); $this->assertVisible("${base}ctl1", 'Required'); - $this->keyPress("${base}autocomplete", 'f'); - $this->pause(1000); + $this->type("${base}autocomplete", 'f'); + $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->pause(500); $this->verifyTextPresent('Finland'); - $this->keyPress("${base}autocomplete", 'r'); - $this->pause(1000); + + $this->type("${base}autocomplete", 'fr'); + $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->pause(500); $this->verifyTextPresent('French'); - $this->keyPress("${base}autocomplete", 'a'); - $this->pause(1000); + + $this->type("${base}autocomplete", 'fra'); + $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->pause(500); $this->verifyTextPresent('France'); $this->click("css=#${base}autocomplete_result ul li"); diff --git a/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php index 62e13526..90711162 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket722TestCase.php @@ -18,7 +18,7 @@ class Ticket722TestCase extends PradoGenericSeleniumTest $this->assertText($base.'InPlaceTextBox__label', 'Prado'); $this->click($base.'ctl0'); $this->pause(800); - $this->assertText($base.'InPlaceTextBox__label', 'Prado [Read Only]'); + $this->assertText($base.'InPlaceTextBox__label', 'exact:Prado [Read Only]'); $this->click($base.'InPlaceTextBox__label'); $this->pause(800); $this->assertNotVisible($base.'InPlaceTextBox'); |