Wait until tabs are loaded for last-close tests.

This commit is contained in:
Florian Bruhin 2016-01-18 23:08:16 +01:00
parent dfcd3087c2
commit faed088735

View File

@ -548,6 +548,7 @@ Feature: Tab management
And I open data/numbers/3.txt And I open data/numbers/3.txt
And I run :tab-close And I run :tab-close
And I run :undo And I run :undo
And I wait until data/numbers/3.txt is loaded
Then the session should look like: Then the session should look like:
windows: windows:
- tabs: - tabs:
@ -565,6 +566,7 @@ Feature: Tab management
And I set tabs -> last-close to blank And I set tabs -> last-close to blank
And I run :tab-close And I run :tab-close
And I run :undo And I run :undo
And I wait until data/hello.txt is loaded
Then the following tabs should be open: Then the following tabs should be open:
- data/hello.txt (active) - data/hello.txt (active)
@ -575,6 +577,7 @@ Feature: Tab management
And I set tabs -> last-close to blank And I set tabs -> last-close to blank
And I run :tab-close And I run :tab-close
And I run :undo And I run :undo
And I wait until data/hello2.txt is loaded
Then the following tabs should be open: Then the following tabs should be open:
- data/hello2.txt (active) - data/hello2.txt (active)
@ -585,6 +588,7 @@ Feature: Tab management
And I set general -> startpage to http://localhost:(port)/data/numbers/4.txt,http://localhost:(port)/data/numbers/5.txt And I set general -> startpage to http://localhost:(port)/data/numbers/4.txt,http://localhost:(port)/data/numbers/5.txt
And I run :tab-close And I run :tab-close
And I run :undo And I run :undo
And I wait until data/hello.txt is loaded
Then the following tabs should be open: Then the following tabs should be open:
- data/hello.txt (active) - data/hello.txt (active)
@ -595,6 +599,7 @@ Feature: Tab management
And I set general -> default-page to http://localhost:(port)/data/numbers/6.txt And I set general -> default-page to http://localhost:(port)/data/numbers/6.txt
And I run :tab-close And I run :tab-close
And I run :undo And I run :undo
And I wait until data/hello.txt is loaded
Then the following tabs should be open: Then the following tabs should be open:
- data/hello.txt (active) - data/hello.txt (active)