A
A
Arta2015-04-19 20:34:32
PHP
Arta, 2015-04-19 20:34:32

How to clear local storage in phantomjs when running tests in codeception?

There is a single page application in Angular, JWT authorization, the token is stored in local storage. Before starting each acceptance test, there is a need to nail the token in a storage. Is there any possibility to do this? Google didn't answer the question..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arta, 2015-04-21
@Arta

The problem was solved simply - the WebDriver module settings flag 'restart' or 'clear_cookies' set to true resets localstorage.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question