update: loccalStorage persistance using externallibrary

This commit is contained in:
Jure Ursic
2020-07-08 15:41:05 +02:00
parent ff41638e2b
commit 9a6ea85bbb
13 changed files with 39 additions and 42 deletions

View File

@ -17,10 +17,12 @@ context('Edit Job Offer Browser Testing', () => {
jobTitle += num;
description += num;
});
cy.clearLocalStorageSnapshot();
cy.clearLocalStorage({ domain: null });
cy.clearCookies({ domain: null });
});
beforeEach(() => cy.setToken());
beforeEach(() => cy.restoreLocalStorage());
afterEach(() => cy.saveLocalStorage());
it('should visit user login screen', () => cy.userLogin());
describe('Job Offer Edition process', () => {
it('should login', () => cy.login());
@ -47,10 +49,6 @@ context('Edit Job Offer Browser Testing', () => {
cy.location().should((loc) => {
expect(loc.pathname).to.eq('/job-offers');
});
// Workaround - component reactivity bug
cy.reload();
cy.get('.accept-button').click();
// End workaround
});
it('should show edited project data on project information screen', () => {
cy.contains('solid-display-value[name="title"]', jobTitle).should("exist");