update: loccalStorage persistance using externallibrary
This commit is contained in:
@ -16,10 +16,12 @@ context('Edit Project Browser Testing', () => {
|
||||
customerName += 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('Project Edition process', () => {
|
||||
it('should login', () => cy.login());
|
||||
@ -50,10 +52,6 @@ context('Edit Project Browser Testing', () => {
|
||||
expect(loc.pathname).to.eq('/project/@' + id + '/project-information');
|
||||
});
|
||||
}));
|
||||
// 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="customer.name"]', customerName).should("exist");
|
||||
|
Reference in New Issue
Block a user