Fixed cookies not being reset after each session

This commit is contained in:
Joe Ferris 2011-02-26 17:05:28 -05:00
parent 7451010c18
commit 64d34e57ea
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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);
}