Commit Graph

31 Commits

Author SHA1 Message Date
Michal Čihař
eabdf845c3 Fix waiting for AJAX popup disappear in Selenium tests
Waiting for ajax_message_num_1 works only on first AJAX request and
we're doing more of them. This should remove need for many consequent
sleeps as we were actually not properly waiting for element.

Also it's better to wrap this logic in separate method as it is used in
many places in the code.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:17:06 +02:00
Deven Bansod
8c32018335 Refactor methods in selenium tests
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-08-22 16:42:37 +05:30
Deven Bansod
4083e03267 Fix tests
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-07-25 14:43:32 +05:30
Deven Bansod
414ac39db9 Fix CreateDropDb, CreateRemoveUser and DB-related selenium tests
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-07-10 10:06:18 +05:30
Deven Bansod
d2fd27c041 Fix few more errors in hover on 'More'
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-12-29 17:39:22 +05:30
Deven Bansod
7fcbb5ea7d Fix Database create and drop selenium test
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-12-26 15:46:34 +05:30
Michal Čihař
76c8da35d6 Wait for page to load
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-03-27 18:03:06 +01:00
Michal Čihař
26fddde475 Group Selenium test
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-03-26 13:36:52 +01:00
Michal Čihař
71b48f32a9 Wrap long lines
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-24 14:02:18 +01:00
Michal Čihař
d1ee1bb3d3 Move waiting for elements after login to tests
We can not wait in login itself as it is used for failing tests as well.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-24 09:15:02 +01:00
Michal Čihař
f6363b0696 Another test which relies on superuser
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 13:28:37 +01:00
Michal Čihař
3d9bb4cbfb Remove database before creating it
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 11:08:34 +01:00
Michal Čihař
8e927f8852 Provide sane defaults for login method
So that the credentials do not have to be repeated in every test.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 09:42:11 +01:00
Michal Čihař
85812246b9 Clear the database name prior setting it to remove prefilled value
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-17 21:35:40 +01:00
Michal Čihař
1fb485ddad Make database name a public property
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-17 20:31:08 +01:00
Michal Čihař
a731ce017c Convert remaining Selenium tests to new model
I expect many of them to be broken, but let's fix that later.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-17 20:28:56 +01:00
Michal Čihař
ceb35a8816 Remove debugging code 2013-08-28 10:37:05 +02:00
Madhura Jayaratne
aa58386e0e Use types 2013-08-27 22:22:14 +05:30
Madhura Jayaratne
c1bd8d9e93 Remove trailing white spaces 2013-08-25 17:07:22 +05:30
ayushchd
082dc5a4e7 Changed tests for Selenium2 compatibility 2013-08-22 23:44:50 +05:30
ayushchd
0c0538b99d Merge Helper and PmaSeleniumTestCase classes 2013-08-21 21:38:26 +05:30
ayushchd
d354f6a179 Improve current database test 2013-08-15 17:26:14 +05:30
Spun Nakandala
e6b0ded105 Docblocks added for selenium test classes 2013-03-04 10:36:05 +05:30
Michal Čihař
f780d01eae Merge remote-tracking branch 'ayushchd/unit_testing_local'
Conflicts:
	test/selenium/PmaSeleniumCreateDropDatabaseTest.php
2013-02-25 13:17:14 +01:00
Supun Nakandala
6ff5e7fe7f indentation refactored 2013-02-11 22:50:18 +05:30
Supun Nakandala
d5c3f91daa indentation refactored 2013-02-11 22:35:43 +05:30
Supun Nakandala
fcefcc8517 Further modified and removed php sleep calls 2013-02-10 23:48:28 +05:30
ayushchd
541538f099 Selenium Create Drop DB Test refactored to handle AJAX Content
I have refactored the Create/Drop Database test to handle the AJAX
content, it uses waitForElementPresent() method to wait for an ajax
response which should be more reliable than sleep(). Next, I have tried
to use more of cssSelectors rather than xpaths as cssselectors cope up
well with structural changes on the page. Not yet added to
AllSeleniumTests.php, waiting for approval.
2013-02-10 16:40:52 +05:30
ayushchd
dc986d9d74 CreateDropDatabaseTest refactored to handle AJAX content
I have refactored the Create/Drop Database test to handle the AJAX
content, it uses waitForElementPresent() method to wait for an ajax
response which should be more reliable than sleep(). Next, I have tried
to use more of cssSelectors rather than xpaths as cssselectors cope up
well with structural changes on the page. Not yet added to
AllSeleniumTests.php, waiting for approval.
2013-02-10 16:34:58 +05:30
Supun Nakandala
8163dc1c0b Existing selenium tests refactored s that they work with the latest revision.5 2013-02-10 15:57:41 +05:30
Yasitha Pandithawatta
0aca1fabad add create and drop database selenium test case 2012-07-23 22:12:36 +05:30