update: loccalStorage persistance using externallibrary
This commit is contained in:
@ -13,10 +13,12 @@ context('Create 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 Creation process', () => {
|
||||
it('should login', () => cy.login());
|
||||
@ -52,10 +54,6 @@ context('Create 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 land newly created job offer on job offers list screen', () => {
|
||||
cy.contains('solid-display-value[name="title"]', jobTitle).should("exist");
|
||||
|
Reference in New Issue
Block a user