Commit Graph

22 Commits

Author SHA1 Message Date
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ř
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
11bc4c6252 Replace usleep with sleep calls
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
Michal Čihař
26fddde475 Group Selenium test
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-03-26 13:36:52 +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ř
5f4a69ab09 Looks like More is not usually shown here
Signed-off-by: Michal Čihař <michal@cihar.com>
2014-02-18 10:19:59 +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ř
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
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
ayushchd
004d5d51b6 More sensible file names 2013-08-25 20:01:29 +05:30