Commit Graph

36 Commits

Author SHA1 Message Date
Michal Čihař
3e7281e620 Include additional space in input
It seems that last char is sometimes lost and space is harmless

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-28 11:10:36 +02:00
Michal Čihař
f1326358d2 Add separate wait for message to disappear
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:35:33 +02:00
Michal Čihař
877d620c87 Add some missing AJAX waits in events/procedures/triggers
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:17:06 +02:00
Michal Čihař
fa2457cf3d Simplify entering form values
Use value() instead of click() and keys().

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:17:06 +02:00
Michal Čihař
c3f8315858 Fixed waiting for event/procedure/trigger drop
The nothing2display element is always present, sometimes it is just
hidden. Wait for AJAX completion instead.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:17:06 +02:00
Michal Čihař
037dde0e42 Share code for waiting for CodeMirror
It takes some time to initialize, so we should wait for it.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-07 15:17:06 +02:00
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
b72b5ab5f1 Add navigateDatabase method to prevent navigation errors
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-08-22 16:42:37 +05:30
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
94d8d897ce Clear input fields to avoid duplicate texts
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-08-20 13:49:37 +05:30
Deven Bansod
a5d6c06812 Fix another possible failure point in DbEvents - testAddEvent
See: https://travis-ci.org/phpmyadmin/phpmyadmin/jobs/266409700 for example

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-08-20 13:01:17 +05:30
Deven Bansod
26d80bd975 Fix DbEvents test
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-08-18 16:31:27 +05:30
Deven Bansod
b1504ad3f5 Use shorter strings hoping to avoid error in DbEvents addEvent
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-07-26 20:18:26 +05:30
Deven Bansod
7467d28198 Use alternate way to enter long text field values in AddEvent
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2017-07-26 18:58:47 +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
Raghuram
d084d25a61 Fixes bugs in PmaSeleniumDbEventsTest.php
Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in>
2017-03-28 10:38:12 +05:30
Michal Čihař
3d056bc49f Do not execute tearDown if not configured
Apparently the tearDown method can be executed for skipped tests in some
cases and it will fail due to failed initilization.

Fixes #12883

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-20 16:29:55 +01:00
Deven Bansod
65fe1c7ad6 Fix selenium test related to Database events
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
2016-12-28 23:20:02 +05:30
Michal Čihař
88aeccc064 Simplify code
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-04-30 09:26:14 +02: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ř
f66f09ee20 Move More link expanding to setUpPage method 2014-02-19 14:39:15 +01:00
Michal Čihař
3de6a0819c Try better method for working with More link
Hovering/clicking dynamically created elements turns out to be
unreliable, so let's try to disable menuResizer completely for these
tests.

Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-19 13:50:12 +01:00
Michal Čihař
5d10295c28 Use More hover if it is there
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 11:06:51 +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ř
019afcab12 Increase delay to ensure the event gets fired
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-17 22:15:01 +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
Hugues Peccatte
f7d5da319e Fix coding style.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2014-01-09 18:22:11 +01:00
ayushchd
32b36ce020 Resolve merge conflict 2013-08-28 17:29:34 +05:30
ayushchd
b23eefacf0 Selenium suite code standard compliance 2013-08-28 13:25:43 +05:30
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
d7765a06cd Selenium tests for Events 2013-08-25 15:19:05 +05:30