diff options
Diffstat (limited to 'tests/FunctionalTests/tickets/tests')
4 files changed, 16 insertions, 16 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php index da5e8c15..120e7bd0 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket220TestCase.php @@ -8,9 +8,9 @@ class Ticket220TestCase extends PradoGenericSeleniumTest $this->open('tickets/index.php?page=Ticket220'); $this->assertTextPresent('ClientScript Test'); $this->assertText("{$base}label1", "Label 1"); - + $this->click("button1"); - $this->assertText("{$base}label1", 'exact:Label 1: ["ok", "ok 3?", "ok 2!"]'); + $this->assertText("{$base}label1", 'exact:Label 1: ok; ok 3?; ok 2!'); $this->assertAlertNotPresent(); } } diff --git a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php index d5064c1e..7fa37bad 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket587TestCase.php @@ -16,7 +16,7 @@ class Ticket587TestCase extends PradoGenericSeleniumTest $this->assertText($base."label1", "Selection 2: value 3 - item 4"); $this->type($base.'text1', 't'); - $this->runScript("Prado.Registry.get('{$base}text1').onKeyPress({})"); + $this->runScript("Prado.Registry['{$base}text1'].onKeyPress({})"); $this->pause(800); $this->select($base."list2", "asd 3 - item 2"); $this->pause(800); diff --git a/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php index c71cb0a8..4205427b 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket719TestCase.php @@ -6,36 +6,36 @@ class Ticket719TestCase extends PradoGenericSeleniumTest { $this->open("tickets/index.php?page=Ticket719"); $this->verifyTextPresent("Verifying Ticket 719"); - + $base="ctl0_Content_"; - + $this->click("${base}ctl2"); $this->pause(800); $this->assertVisible("${base}ctl0", 'Required'); $this->assertVisible("${base}ctl1", 'Required'); - + $this->type("${base}autocomplete", 'f'); - $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->runScript("Prado.Registry['${base}autocomplete'].onKeyPress({})"); $this->pause(500); $this->verifyTextPresent('Finland'); $this->type("${base}autocomplete", 'fr'); - $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->runScript("Prado.Registry['${base}autocomplete'].onKeyPress({})"); $this->pause(500); $this->verifyTextPresent('French'); $this->type("${base}autocomplete", 'fra'); - $this->runScript("Prado.Registry.get('${base}autocomplete').onKeyPress({})"); + $this->runScript("Prado.Registry['${base}autocomplete'].onKeyPress({})"); $this->pause(500); $this->verifyTextPresent('France'); - + $this->click("css=#${base}autocomplete_result ul li"); $this->pause(800); $this->assertNotVisible("${base}ctl1"); $this->type("${base}textbox", "Prado"); $this->assertNotVisible("${base}ctl0"); - + $this->click("${base}ctl2"); $this->pause(800); $this->assertText("${base}Result", "TextBox Content : Prado -- Autocomplete Content :France"); diff --git a/tests/FunctionalTests/tickets/tests/Ticket769TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket769TestCase.php index 468342a5..74ca48da 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket769TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket769TestCase.php @@ -7,22 +7,22 @@ class Ticket769TestCase extends PradoGenericSeleniumTest $base="ctl0_Content_"; $this->open('tickets/index.php?page=Ticket769'); $this->assertTitle("Verifying Ticket 769"); - + $this->click($base.'ctl0'); $this->assertVisible($base.'ctl1'); - + $this->type($base.'T1', 'Prado'); $this->click($base.'ctl0'); $this->pause(800); $this->assertNotVisible($base.'ctl1'); $this->verifyTextPresent($base.'ctl0', 'T1 clicked' ); - + $this->click($base.'ctl2'); $this->pause(800); $this->verifyTextPresent($base.'B', 'This is B'); $this->click($base.'ctl3'); $this->pause(800); - + $this->type($base.'T1', ''); $this->click($base.'ctl0'); $this->assertVisible($base.'ctl1'); @@ -31,6 +31,6 @@ class Ticket769TestCase extends PradoGenericSeleniumTest $this->pause(800); $this->assertNotVisible($base.'ctl1'); $this->verifyTextPresent($base.'ctl0', 'T1 clicked clicked' ); - + } }
\ No newline at end of file |