access-to-page.spec.ts 545 B

12345678910111213141516171819202122
  1. const ssPrefix = 'access-to-page-';
  2. context('Access to page', () => {
  3. before(() => {
  4. // login
  5. cy.fixture("user-admin.json").then(user => {
  6. cy.login(user.username, user.password);
  7. });
  8. });
  9. it('/Sandbox is successfully loaded', () => {
  10. cy.visit('/Sandbox');
  11. cy.screenshot(`${ssPrefix}-sandbox`, { capture: 'viewport' });
  12. });
  13. it('/Sandbox with anchor hash is successfully loaded', () => {
  14. cy.visit('/Sandbox#Headers');
  15. cy.screenshot(`${ssPrefix}-sandbox-headers`, { capture: 'viewport' });
  16. });
  17. });