text: describe('createContent Tests', () => {
    beforeEach(() => {
      cy.autologin();
    });
  
    it('Create document', function () {
      cy.createContent({
        contentType: 'Document',
        contentId: 'my-page',
        contentTitle: 'My Page',
      });
      cy.visit('/my-page');
      cy.get('.documentFirstHeading').should('have.text', 'My Page');
    });
    it('Create document with path', function () {
      cy.createContent({
        contentType: 'Document',
        contentId: 'container',
        contentTitle: 'My Container',
      });
      cy.createContent({
        contentType: 'Document',
        contentId: 'child',
        contentTitle: 'My Child',
        path: '/container',
      });
      cy.visit('/container/child');
      cy.get('.documentFirstHeading').should('have.text', 'My Child');
    });
    it('Create document with custom id', function () {
      cy.createContent({
        contentType: 'Document',
        contentId: 'my-custom-id',
        contentTitle: 'My Page',
      });
      cy.visit('/my-custom-id');
      cy.get('.documentFirstHeading').should('have.text', 'My Page');
    });
    it('Create News Item', function () {
      cy.createContent({
        contentType: 'News Item',
        contentId: 'my-news-item',
        contentTitle: 'My News Item',
      });
      cy.visit('/my-news-item');
      cy.get('.documentFirstHeading').should('have.text', 'My News Item');
    });
    it('Create File', function () {
      cy.createContent({
        contentType: 'File',
        contentId: 'my-file',
        contentTitle: 'My File',
      });
      cy.visit('/my-file');
      cy.get('.documentFirstHeading').should('have.text', 'My File');
      cy.get('.view-wrapper a').should(
        'have.attr',
        'href',
        '/my-file/@@download/file',
      );
      // cy.get('.view-wrapper a').click();
    });
    it('Create Image', function () {
      cy.createContent({
        contentType: 'Image',
        contentId: 'my-image',
        contentTitle: 'My Image',
      });
      cy.visit('/my-image');
      cy.get('.documentFirstHeading').should('have.text', 'My Image');
      cy.get('.view-wrapper img')
        .should('have.attr', 'src')
        .and('include', '/my-image/@@images/');
      cy.get('.view-wrapper img').should('have.attr', 'alt', 'My Image');
      // cy.get('.view-wrapper a').click();
    });
  });
  