Explorar el Código

add a test to access to page

Yuki Takei hace 4 años
padre
commit
d0d1586f5d

+ 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' });
+  });
+
+});