|
|
@@ -2,24 +2,11 @@ context('Open Page Accessories Modal', () => {
|
|
|
|
|
|
const ssPrefix = 'access-to-page-accessories-modal';
|
|
|
|
|
|
- let connectSid: string | undefined;
|
|
|
-
|
|
|
- before(() => {
|
|
|
+ beforeEach(() => {
|
|
|
// login
|
|
|
cy.fixture("user-admin.json").then(user => {
|
|
|
cy.login(user.username, user.password);
|
|
|
});
|
|
|
- cy.getCookie('connect.sid').then(cookie => {
|
|
|
- connectSid = cookie?.value;
|
|
|
- });
|
|
|
- // collapse sidebar
|
|
|
- cy.collapseSidebar(true);
|
|
|
- });
|
|
|
-
|
|
|
- beforeEach(() => {
|
|
|
- if (connectSid != null) {
|
|
|
- cy.setCookie('connect.sid', connectSid);
|
|
|
- }
|
|
|
});
|
|
|
|
|
|
it('Page History is shown successfully', () => {
|