From 40721a2b6b00626c070bf7f6d46c1a585e6b9e58 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Jan 2016 06:51:48 +0100 Subject: [PATCH] bdd: Wait until basic-auth page is fully loaded. This hopefully fixes this flakyness in test_successful_webpage_authentification: tests/integration/features/test_prompts.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [...] tests/integration/features/conftest.py:381: in check_contents_json actual = json.loads(content) /usr/lib/python3.4/json/__init__.py:318: in loads return _default_decoder.decode(s) /usr/lib/python3.4/json/decoder.py:343: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [...] > raise ValueError(errmsg("Expecting value", s, err.value)) from None E ValueError: Expecting value: line 1 column 1 (char 0) --- tests/integration/features/prompts.feature | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/features/prompts.feature b/tests/integration/features/prompts.feature index 46614e186..d3f77f6da 100644 --- a/tests/integration/features/prompts.feature +++ b/tests/integration/features/prompts.feature @@ -187,6 +187,7 @@ Feature: Prompts And I run :prompt-accept And I press the keys "password" And I run :prompt-accept + And I wait until basic-auth/user/password is loaded Then the json on the page should be: { "authenticated": true,