| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- context('Access to page', () => {
- const ssPrefix = 'open-page-create-modal-';
- 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('/Sandbox is successfully loaded', () => {
- cy.visit('/Sandbox', { });
- cy.screenshot(`${ssPrefix}-Sandbox`,{ capture: 'viewport' });
- });
- // it('PageDeleteModal is shown successfully', () => {
- // cy.visit('/Sandbox');
- // cy.getByTestid('open-page-item-control-btn')[0].click();
- // cy.contains('Delete').click();
- // cy.screenshot(`${ssPrefix}-open`,{ capture: 'viewport' });
- // });
- // it('PageDeleteModal Search is shown successfully', () => {
- // cy.visit('/_search?q=tag:we');
- // cy.getByTestid('open-page-item-control-btn')[0].click();
- // cy.contains('Delete').click();
- // cy.screenshot(`${ssPrefix}_search?q=tag:we`,{ capture: 'viewport' });
- // });
- });
|