summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/tests/Ticket205TestCase.php')
-rwxr-xr-xtests/FunctionalTests/tickets/tests/Ticket205TestCase.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
index 53761d14..57b0c95b 100755
--- a/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket205TestCase.php
@@ -10,12 +10,15 @@ class Ticket205TestCase extends PradoGenericSelenium2Test
$this->assertNotVisible("{$base}validator1");
$this->type("{$base}textbox1", "test");
- $this->click("{$base}button1");
- $this->assertAlert("error");
+ $this->byId("{$base}button1")->click();
+
+ $this->assertEquals("error", $this->alertText());
+ $this->acceptAlert();
+
$this->assertVisible("{$base}validator1");
$this->type("{$base}textbox1", "Prado");
- $this->clickAndWait("{$base}button1");
+ $this->byId("{$base}button1")->click();
$this->assertNotVisible("{$base}validator1");
}
}