From 6d52f5c4461bd26c4e1dea68686d88c71a9d3e22 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 21 Nov 2014 22:14:00 +0100 Subject: TJuiAutoComplete multiselection + quickstart doc implemented Separator, minChars and Frequency properties, added the related quickstart parts --- .../JuiControls/JuiAutoCompleteTestCase.php | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 tests/FunctionalTests/quickstart/JuiControls/JuiAutoCompleteTestCase.php (limited to 'tests/FunctionalTests/quickstart/JuiControls') diff --git a/tests/FunctionalTests/quickstart/JuiControls/JuiAutoCompleteTestCase.php b/tests/FunctionalTests/quickstart/JuiControls/JuiAutoCompleteTestCase.php new file mode 100755 index 00000000..a3c1ff78 --- /dev/null +++ b/tests/FunctionalTests/quickstart/JuiControls/JuiAutoCompleteTestCase.php @@ -0,0 +1,50 @@ +url("../../demos/quickstart/index.php?page=JuiControls.Samples.TJuiAutoComplete.Home&notheme=true&lang=en"); + + $this->assertEquals("PRADO QuickStart Sample", $this->title()); + + $this->assertContains('TJuiAutoComplete Samples', $this->source()); + + $base = 'ctl0_body_'; + + + $this->assertText("{$base}Selection1", ""); + + $this->byId("{$base}AutoComplete")->click(); + $this->keys('J'); + $this->pause(800); + $this->assertContains('John', $this->source()); + + $this->byCssSelector("#{$base}AutoComplete_result ul li")->click(); + $this->pause(800); + $this->assertValue("{$base}AutoComplete", "John"); + $this->assertText("{$base}Selection1", "Selected ID: 1"); + + + $this->byId("{$base}AutoComplete2")->click(); + $this->keys('Joh'); + $this->pause(800); + $this->byCssSelector("#{$base}AutoComplete2_result ul li")->click(); + $this->pause(800); + $this->assertValue("{$base}AutoComplete2", "John"); + $this->assertText("{$base}Selection2", "Selected ID: 1"); + + //$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::END); + $this->keys(',Ge'); + $this->pause(800); + $this->byCssSelector("#{$base}AutoComplete2_result ul li")->click(); + $this->pause(500); + $this->assertValue("{$base}AutoComplete2", "John,George"); + $this->assertText("{$base}Selection2", "Selected ID: 3"); + + } +} -- cgit v1.2.3