Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUbGq-00043u-QC for pgadmin-hackers@arkaria.postgresql.org; Fri, 20 Jan 2017 15:38:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cUbGq-0002E9-73 for pgadmin-hackers@arkaria.postgresql.org; Fri, 20 Jan 2017 15:38:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cUbGp-0002Bj-3h for pgadmin-hackers@postgresql.org; Fri, 20 Jan 2017 15:38:31 +0000 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cUbGh-0002IS-TD for pgadmin-hackers@postgresql.org; Fri, 20 Jan 2017 15:38:29 +0000 Received: by mail-io0-x22e.google.com with SMTP id v96so1035260ioi.0 for ; Fri, 20 Jan 2017 07:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8fAvG88edM1iOiKoLMQ/gFbYUxwlHwoe7FkOF2BA4k0=; b=RwRiMAfHUI4CR69UECVdASirVPM+nRbmWqr68PI3HatmXbqHw1hWVc0l7QjL0fm3Ty PnTSFuEHV0ds1ofFbazBdQklAV7oTA8zJVykveF1Km8Wia4S/L/zCeKr9XZT7MNNd1NT 4FkiHH/LD7sZdXkzvaGhBoJ11QRW2MmShkqjz6YBVqwC8g3mTgM+0ftm7egUYifIrm7v 9kHDI6+dZWVl9ZIRulWkx7f/OvUdWVHdMlN0SWEQdLxPB+CfMG6ea3IZcBBp4KPwbLKO JL5mF7Ve9fzK9H6XT/2u6N6Q7GPB6Ps2J0rKyGErQiV/f+Z6yY8a74bS/WSIhqu2Hp3o aSbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8fAvG88edM1iOiKoLMQ/gFbYUxwlHwoe7FkOF2BA4k0=; b=Z8SOxiDoAr6hSDhq0Pyq7Ci54UGc0Buhg4aYdxx2pQ3/p9rTR2EFYlypg/5V764mO2 vQUnmkILYovNGT0z0+Pb0fXq2rM4zslNiVTYrVzGUCS66uIa+gZzfgc+NAipVjZONo2h KU272AY7tf2uv/m+Gqm5fXO29YeHjTZUyUP1sIx8GEj0FK2gEw03GxipZP8MW3Qqp7+6 t0S/qPd/8YBjYWX2N86KMVC60jslOC/nexjancTo6hl9GGAawslS2oX/6SvGoN+7T/JD kiohyh0RJgOb3plBliwprD9G+nwf40zmUnBqLzgh4snd6Ko3r0/7B2JXiWmEPV3xUEIi NYTg== X-Gm-Message-State: AIkVDXI5qjIXLUaIYIadoSZP1TMBXlaCbbXHFjwO74Mgi/dLrRyYZNDiDoi8Xn1gUTEmIY+zO7ADFpxN3SXukg== X-Received: by 10.107.57.5 with SMTP id g5mr6681587ioa.208.1484926702408; Fri, 20 Jan 2017 07:38:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.224.198 with HTTP; Fri, 20 Jan 2017 07:38:21 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Fri, 20 Jan 2017 15:38:21 +0000 Message-ID: Subject: Re: Acceptance Tests against a browser (WIP) To: George Gelashvili Cc: Atira Odhner , pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Thu, Jan 19, 2017 at 11:15 PM, George Gelashvili wrote: > Here's an updated patch which polls to wait for the app to start instead of > sleeping for 10 seconds. I see the browser opening now, and it immediately loads pgAdmin. Then, it prompts me for a reload whenever the test is run, which fails no matter how quickly I hit the prompt from what I can see: ====================================================================== ERROR: runTest (pgadmin.acceptance.tests.test_connects_to_database.ConnectsToDatabase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/acceptance/tests/test_connects_to_database.py", line 41, in setUp self._wait_for_app() File "/Users/dpage/git/pgadmin4/web/pgadmin/acceptance/tests/test_connects_to_database.py", line 109, in _wait_for_app self.__wait_for("app to start", page_shows_app) File "/Users/dpage/git/pgadmin4/web/pgadmin/acceptance/tests/test_connects_to_database.py", line 117, in __wait_for result = condition_met_function() File "/Users/dpage/git/pgadmin4/web/pgadmin/acceptance/tests/test_connects_to_database.py", line 107, in page_shows_app return self.driver.title == config.APP_NAME File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 257, in title resp = self.execute(Command.GET_TITLE) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute self.error_handler.check_response(response) File "/Users/dpage/.virtualenvs/pgadmin4/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) UnexpectedAlertPresentException: Alert Text: None Message: unexpected alert open: {Alert text : Are you sure you wish to close the pgAdmin 4 browser?} (Session info: chrome=55.0.2883.95) (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Mac OS X 10.12.1 x86_64) -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers