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