update: loccalStorage persistance using externallibrary
This commit is contained in:
@ -11,10 +11,12 @@ context('Create 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 Creation process', () => {
|
||||
it('should login', () => cy.login());
|
||||
@ -50,10 +52,6 @@ context('Create Project Browser Testing', () => {
|
||||
cy.location().should((loc) => {
|
||||
expect(loc.pathname).to.eq('/admin/admin-projects');
|
||||
});
|
||||
// Workaround - component reactivity bug
|
||||
cy.reload();
|
||||
cy.get('.accept-button').click();
|
||||
// End workaround
|
||||
});
|
||||
it('should land newly created project on projects list screen', () => {
|
||||
cy.contains('solid-display-value[name="project.name"]', projectName).should("exist");
|
||||
|
Reference in New Issue
Block a user