From d3795b405bcce72d81f168731a93a9ba70b4d28b Mon Sep 17 00:00:00 2001 From: Michael Fix Date: Fri, 19 Jul 2019 16:19:05 -0700 Subject: [PATCH] integration tests (#827) --- ...background-color-spec.js => background-color.spec.js} | 0 cypress/integration/{basic.js => basic.spec.js} | 0 cypress/integration/embed.spec.js | 9 +++++++++ cypress/integration/{gist.js => gist.spec.js} | 6 ------ .../{localStorage-spec.js => localStorage.spec.js} | 0 5 files changed, 9 insertions(+), 6 deletions(-) rename cypress/integration/{background-color-spec.js => background-color.spec.js} (100%) rename cypress/integration/{basic.js => basic.spec.js} (100%) create mode 100644 cypress/integration/embed.spec.js rename cypress/integration/{gist.js => gist.spec.js} (74%) rename cypress/integration/{localStorage-spec.js => localStorage.spec.js} (100%) diff --git a/cypress/integration/background-color-spec.js b/cypress/integration/background-color.spec.js similarity index 100% rename from cypress/integration/background-color-spec.js rename to cypress/integration/background-color.spec.js diff --git a/cypress/integration/basic.js b/cypress/integration/basic.spec.js similarity index 100% rename from cypress/integration/basic.js rename to cypress/integration/basic.spec.js diff --git a/cypress/integration/embed.spec.js b/cypress/integration/embed.spec.js new file mode 100644 index 0000000..cbb439d --- /dev/null +++ b/cypress/integration/embed.spec.js @@ -0,0 +1,9 @@ +/* global cy */ +describe('Embed', () => { + it('Should render the Carbon editor but no toolbar', () => { + cy.visit('/embed') + + cy.get('.export-container').should('be.visible') + cy.get('.export-menu-container').should('not.exist') + }) +}) diff --git a/cypress/integration/gist.js b/cypress/integration/gist.spec.js similarity index 74% rename from cypress/integration/gist.js rename to cypress/integration/gist.spec.js index 9abba18..f316e56 100644 --- a/cypress/integration/gist.js +++ b/cypress/integration/gist.spec.js @@ -20,11 +20,5 @@ describe('Gist', () => { cy.url().should('not.contain', '?') }) - - test(`${page} should have a green editor background`, () => { - cy.visit(`${page}82d742f4efad9757cc826d20f2a5e5af`) - - cy.get('.container-bg .bg').should('have.css', 'background-color', 'rgb(0, 128, 0)') - }) }) }) diff --git a/cypress/integration/localStorage-spec.js b/cypress/integration/localStorage.spec.js similarity index 100% rename from cypress/integration/localStorage-spec.js rename to cypress/integration/localStorage.spec.js