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