소스 검색

add a test to access to page

Yuki Takei 4 년 전
부모
커밋
d0d1586f5d
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      packages/app/test/cypress/integration/2-basic-features/access-to-page.spec.ts

+ 22 - 0
packages/app/test/cypress/integration/2-basic-features/access-to-page.spec.ts

@@ -0,0 +1,22 @@
+const ssPrefix = 'access-to-page-';
+
+context('Access to page', () => {
+
+  before(() => {
+    // login
+    cy.fixture("user-admin.json").then(user => {
+      cy.login(user.username, user.password);
+    });
+  });
+
+  it('/Sandbox is successfully loaded', () => {
+    cy.visit('/Sandbox');
+    cy.screenshot(`${ssPrefix}-sandbox`, { capture: 'viewport' });
+  });
+
+  it('/Sandbox with anchor hash is successfully loaded', () => {
+    cy.visit('/Sandbox#Headers');
+    cy.screenshot(`${ssPrefix}-sandbox-headers`, { capture: 'viewport' });
+  });
+
+});