update: loccalStorage persistance using externallibrary
This commit is contained in:
@ -14,10 +14,12 @@ context('Edit Channel Browser Testing', () => {
|
||||
channelName += 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('Channel Edition process', () => {
|
||||
it('should login', () => cy.login());
|
||||
@ -46,10 +48,6 @@ context('Edit Channel Browser Testing', () => {
|
||||
expect(loc.pathname).to.eq('/circle/@' + id + '/circle-information');
|
||||
});
|
||||
}));
|
||||
// Workaround - component reactivity bug
|
||||
cy.reload();
|
||||
cy.get('.accept-button').click();
|
||||
// End workaround
|
||||
});
|
||||
it('should show edited channel data on channel information screen', () => {
|
||||
cy.contains('solid-display-value[name="name"]', channelName).should("exist");
|
||||
|
Reference in New Issue
Block a user