Bring back searchengine BDD tests
This commit is contained in:
parent
cff61fa0bc
commit
770c879410
@ -35,12 +35,11 @@ Feature: Opening pages
|
|||||||
When I run :open -t -b foo.bar
|
When I run :open -t -b foo.bar
|
||||||
Then the error "Only one of -t/-b/-w/-p can be given!" should be shown
|
Then the error "Only one of -t/-b/-w/-p can be given!" should be shown
|
||||||
|
|
||||||
# FIXME:conf
|
Scenario: Searching with :open
|
||||||
# Scenario: Searching with :open
|
When I set url.auto_search to naive
|
||||||
# When I set url.auto_search to naive
|
And I set url.searchengines to {"DEFAULT": "http://localhost:(port)/data/numbers/{}.txt"}
|
||||||
# And I set searchengines.DEFAULT to http://localhost:(port)/data/numbers/{}.txt
|
And I run :open 3
|
||||||
# And I run :open 3
|
Then data/numbers/3.txt should be loaded
|
||||||
# Then data/numbers/3.txt should be loaded
|
|
||||||
|
|
||||||
Scenario: Opening in a new tab
|
Scenario: Opening in a new tab
|
||||||
Given I open about:blank
|
Given I open about:blank
|
||||||
|
@ -167,33 +167,31 @@ Feature: Yanking and pasting.
|
|||||||
- data/hello2.txt
|
- data/hello2.txt
|
||||||
- data/hello3.txt
|
- data/hello3.txt
|
||||||
|
|
||||||
# FIXME:conf
|
Scenario: Pasting multiline text
|
||||||
# Scenario: Pasting multiline text
|
When I set url.auto_search to naive
|
||||||
# When I set url.auto_search to naive
|
And I set url.searchengines to {"DEFAULT": "http://localhost:(port)/data/hello.txt?q={}"}
|
||||||
# And I set searchengines.DEFAULT to http://localhost:(port)/data/hello.txt?q={}
|
And I put the following lines into the clipboard:
|
||||||
# And I put the following lines into the clipboard:
|
this url:
|
||||||
# this url:
|
http://qutebrowser.org
|
||||||
# http://qutebrowser.org
|
should not open
|
||||||
# should not open
|
And I run :open -t {clipboard}
|
||||||
# And I run :open -t {clipboard}
|
And I wait until data/hello.txt?q=this%20url%3A%0Ahttp%3A//qutebrowser.org%0Ashould%20not%20open is loaded
|
||||||
# And I wait until data/hello.txt?q=this%20url%3A%0Ahttp%3A//qutebrowser.org%0Ashould%20not%20open is loaded
|
Then the following tabs should be open:
|
||||||
# Then the following tabs should be open:
|
- about:blank
|
||||||
# - about:blank
|
- data/hello.txt?q=this%20url%3A%0Ahttp%3A//qutebrowser.org%0Ashould%20not%20open (active)
|
||||||
# - data/hello.txt?q=this%20url%3A%0Ahttp%3A//qutebrowser.org%0Ashould%20not%20open (active)
|
|
||||||
|
|
||||||
# FIXME:conf
|
Scenario: Pasting multiline whose first line looks like a URI
|
||||||
# Scenario: Pasting multiline whose first line looks like a URI
|
When I set url.auto_search to naive
|
||||||
# When I set url.auto_search to naive
|
And I set url.searchengines to {"DEFAULT": "http://localhost:(port)/data/hello.txt?q={}"}
|
||||||
# And I set searchengines.DEFAULT to http://localhost:(port)/data/hello.txt?q={}
|
And I put the following lines into the clipboard:
|
||||||
# And I put the following lines into the clipboard:
|
text:
|
||||||
# text:
|
should open
|
||||||
# should open
|
as search
|
||||||
# as search
|
And I run :open -t {clipboard}
|
||||||
# And I run :open -t {clipboard}
|
And I wait until data/hello.txt?q=text%3A%0Ashould%20open%0Aas%20search is loaded
|
||||||
# And I wait until data/hello.txt?q=text%3A%0Ashould%20open%0Aas%20search is loaded
|
Then the following tabs should be open:
|
||||||
# Then the following tabs should be open:
|
- about:blank
|
||||||
# - about:blank
|
- data/hello.txt?q=text%3A%0Ashould%20open%0Aas%20search (active)
|
||||||
# - data/hello.txt?q=text%3A%0Ashould%20open%0Aas%20search (active)
|
|
||||||
|
|
||||||
# https://travis-ci.org/qutebrowser/qutebrowser/jobs/157941726
|
# https://travis-ci.org/qutebrowser/qutebrowser/jobs/157941726
|
||||||
@qtwebengine_flaky
|
@qtwebengine_flaky
|
||||||
|
Loading…
Reference in New Issue
Block a user