describe('graphics spec', () => {
it('graphics can do initial publish', () => {
const vizId = '5f9ad217583c1fb5ab0eb00f';
cy.visit(`/visualizations/${expId}/${vizId}/edit`);
cy.get('[data-cy=publishBtn]').click();
cy.get('[data-cy=firstChangesToPublishModal]').should('exist');
cy.get('[data-cy=confirmPublishBtn]').click();
cy.get('[data-cy=noChangesModal]').should('exist');
});
it('graphics can re-publish', () => {
const vizId = '5f9ad16a427139c9235104c0';
cy.visit(`/visualizations/${expId}/${vizId}/edit`);
cy.get('[data-cy=publishBtn]').click();
cy.get('[data-cy=newChangesToPublishModal]').should('exist');
cy.get('[data-cy=confirmRePublishBtn]').click();
cy.get('[data-cy=noChangesModal]').should('exist');
});
});