From 7b8af9ebbff6cb8547b9d21c80737d85ce5a7ebc Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 6 Dec 2016 06:32:51 +0100 Subject: [PATCH] Try to stabilize history tests Sometimes :history-clear would run before about:blank finished loading, causing the test for :spawn with a history flag to fail. --- tests/end2end/features/history.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/end2end/features/history.feature b/tests/end2end/features/history.feature index f4f57dcb7..7e9c55c99 100644 --- a/tests/end2end/features/history.feature +++ b/tests/end2end/features/history.feature @@ -3,7 +3,8 @@ Feature: Page history Make sure the global page history is saved correctly. Background: - Given I run :history-clear + Given I open about:blank + And I run :history-clear Scenario: Simple history saving When I open data/numbers/1.txt @@ -49,7 +50,8 @@ Feature: Page history http://localhost:(port)/status/404 Error loading page: http://localhost:(port)/status/404 Scenario: History with invalid URL - When I open data/javascript/window_open.html + When I run :tab-only + And I open data/javascript/window_open.html And I run :click-element id open-invalid Then "Changing title for idx 1 to 'about:blank'" should be logged