jam411 3 лет назад
Родитель
Сommit
0826bf8515

+ 0 - 21
packages/app/test/cypress/integration/21-basic-features-for-guest/access-to-page.spec.ts

@@ -1,13 +1,6 @@
 context('Access to page by guest', () => {
 context('Access to page by guest', () => {
   const ssPrefix = 'access-to-page-by-guest-';
   const ssPrefix = 'access-to-page-by-guest-';
 
 
-  beforeEach(() => {
-    // login
-    cy.fixture("user-admin.json").then(user => {
-      cy.login(user.username, user.password);
-    });
-  });
-
   it('/Sandbox is successfully loaded', () => {
   it('/Sandbox is successfully loaded', () => {
     cy.visit('/Sandbox');
     cy.visit('/Sandbox');
     cy.get('.fa-spinner').should('not.exist');
     cy.get('.fa-spinner').should('not.exist');
@@ -53,13 +46,6 @@ context('Access to page by guest', () => {
 context('Access to /me page', () => {
 context('Access to /me page', () => {
   const ssPrefix = 'access-to-me-page-by-guest-';
   const ssPrefix = 'access-to-me-page-by-guest-';
 
 
-  beforeEach(() => {
-    // login
-    cy.fixture("user-admin.json").then(user => {
-      cy.login(user.username, user.password);
-    });
-  });
-
   beforeEach(() => {
   beforeEach(() => {
     // collapse sidebar
     // collapse sidebar
     cy.collapseSidebar(true);
     cy.collapseSidebar(true);
@@ -76,13 +62,6 @@ context('Access to /me page', () => {
 context('Access to special pages by guest', () => {
 context('Access to special pages by guest', () => {
   const ssPrefix = 'access-to-special-pages-by-guest-';
   const ssPrefix = 'access-to-special-pages-by-guest-';
 
 
-  beforeEach(() => {
-    // login
-    cy.fixture("user-admin.json").then(user => {
-      cy.login(user.username, user.password);
-    });
-  });
-
   it('/trash is successfully loaded', () => {
   it('/trash is successfully loaded', () => {
     cy.visit('/trash', {  });
     cy.visit('/trash', {  });
     cy.collapseSidebar(true, true);
     cy.collapseSidebar(true, true);