mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Fixed cookies not being reset after each session
This commit is contained in:
parent
7451010c18
commit
64d34e57ea
2 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,7 @@ describe Capybara::Driver::Webkit do
|
|||
# TODO: bug with drag and drop
|
||||
# it_should_behave_like "driver with javascript support"
|
||||
|
||||
# TODO: needs to reset cookies after each test
|
||||
# it_should_behave_like "driver with cookies support"
|
||||
it_should_behave_like "driver with cookies support"
|
||||
|
||||
# Can't support:
|
||||
# it_should_behave_like "driver with header support"
|
||||
|
|
|
@ -9,6 +9,7 @@ void Reset::start(QStringList &arguments) {
|
|||
|
||||
page()->triggerAction(QWebPage::Stop);
|
||||
page()->mainFrame()->setHtml("<html><body></body></html>");
|
||||
page()->networkAccessManager()->setCookieJar(new QNetworkCookieJar());
|
||||
QString response = "";
|
||||
emit finished(true, response);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue