pgAdmin 4 commit: Make feature test app teardown more reliable, and tes

From: Dave Page <dpage(at)pgadmin(dot)org>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Make feature test app teardown more reliable, and tes
Date: 2017-03-01 13:20:10
Message-ID: E1cj4As-0007tx-M6@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Make feature test app teardown more reliable, and tests faster

- don't spin up app and chromedriver between each test
- catching signals also tears down the app
- do layout reset between tests, but assume that tests will not leave a modal opened.

Use selenium built-in waiting function and fix flakiness around clicking the alertify OK button

- we think the OK button does not have its event bound when it is created.

If you see more flakiness around clicking the alertify OK button, let us know. The element is clickable but we have to arbitrarily wait for the event to be bound and that timing may vary system to system.

The feature tests are about 7 seconds faster now.

Tira & Joao

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=e89c54c15d9ed8d772ffcfef1f6c2f64aa00499f
Author: Atira Odhner <aodhner(at)pivotal(dot)io>

Modified Files
--------------
.../connect_to_server_feature_test.py | 1 -
.../template_selection_feature_test.py | 2 -
web/pgadmin/utils/route.py | 4 ++
web/regression/feature_utils/base_feature_test.py | 11 ++--
web/regression/feature_utils/pgadmin_page.py | 76 +++++++++++++---------
web/regression/runtests.py | 20 ++++--
web/regression/test_utils.py | 7 +-
7 files changed, 71 insertions(+), 50 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-03-01 13:20:26 Re: [patch] Make feature test app teardown more reliable, and tests faster
Previous Message Dave Page 2017-03-01 12:51:18 Re: [pgAdmin4][Patch]: RM 2173: Sequences API test cases are not working in PG9.2 and PPAS9.2