Просмотр исходного кода

- Initiation cyber-mode-switching VRT

LuqmanHakim-Grune 4 лет назад
Родитель
Сommit
ddbc21a54e

+ 28 - 0
packages/app/test/cypress/integration/5-switch-cyber-mode/cyber-mode-switching.ts

@@ -0,0 +1,28 @@
+context('Cyber mode switching', () => {
+  const ssPrefix = 'cyber-mode-switching-';
+
+  let connectSid: string | undefined;
+
+  before(() => {
+    // 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('Switching cyber mode at header', () => {
+
+  });
+
+});