[FIX] test phantomjs clear localstorage before running tests
This commit is contained in:
parent
63d8fc6e8c
commit
3bb7866384
|
@ -116,6 +116,8 @@ function PhantomTest() {
|
|||
phantom.exit(1);
|
||||
} else {
|
||||
console.log('loaded', url, status);
|
||||
// clear localstorage leftovers
|
||||
self.page.evaluate(function () { localStorage.clear() });
|
||||
// process ready
|
||||
waitFor(function() {
|
||||
console.log("PhantomTest.run: wait for condition:", ready);
|
||||
|
|
Loading…
Reference in New Issue