Use localStorage in fireplace UI tests

RESOLVED FIXED

Status

Marketplace
Code Quality
P4
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: mstriemer, Assigned: mstriemer)

Tracking

Avenir
x86
Mac OS X
Points:
---

Details

(Assignee)

Description

3 years ago
We currently disable localStorage for some modules in the fireplace UI tests. If this is not disabled it causes some tests to fail in tests/ui/app_list.js and tests/ui/installs.js.

We use localStorage in production so we should be testing with it.

Let's remove `capabilities.phantom` from marketplace-core-modules and fireplace, clear localStorage when tests start and fix the failing tests.
(Assignee)

Comment 1

3 years ago
Looks like the tests actually pass if we clear on `page.initialized` instead of after `casper.open` or in setup/teardown.
Assignee: nobody → mstriemer
Status: NEW → ASSIGNED
No longer blocks: 1127432
You need to log in before you can comment on or make changes to this bug.