diff --git a/cypress/integration/api_spec.js b/cypress/integration/api_spec.js index d741175..2d889c5 100644 --- a/cypress/integration/api_spec.js +++ b/cypress/integration/api_spec.js @@ -10,7 +10,7 @@ function rgbCount(text) { describe('getColor()', function() { beforeEach(function() { - cy.visit('http://localhost:8080'); + cy.visit('http://localhost:8080/cypress/test-pages/index.html'); }) it('returns valid color from black image', function() { @@ -62,7 +62,7 @@ function testPaletteCount(num) { describe('getPalette()', function() { beforeEach(function() { - cy.visit('http://localhost:8080'); + cy.visit('http://localhost:8080/cypress/test-pages/index.html'); }) // FULL TEST LIST = [1, 2, 3, 5, 7, 10, 20]; diff --git a/examples/img/black.png b/cypress/test-pages/img/black.png similarity index 100% rename from examples/img/black.png rename to cypress/test-pages/img/black.png diff --git a/examples/img/rainbow-horizontal.png b/cypress/test-pages/img/rainbow-horizontal.png similarity index 100% rename from examples/img/rainbow-horizontal.png rename to cypress/test-pages/img/rainbow-horizontal.png diff --git a/examples/img/rainbow-vertical.png b/cypress/test-pages/img/rainbow-vertical.png similarity index 100% rename from examples/img/rainbow-vertical.png rename to cypress/test-pages/img/rainbow-vertical.png diff --git a/examples/img/red.png b/cypress/test-pages/img/red.png similarity index 100% rename from examples/img/red.png rename to cypress/test-pages/img/red.png diff --git a/examples/img/transparent.png b/cypress/test-pages/img/transparent.png similarity index 100% rename from examples/img/transparent.png rename to cypress/test-pages/img/transparent.png diff --git a/examples/img/white.png b/cypress/test-pages/img/white.png similarity index 100% rename from examples/img/white.png rename to cypress/test-pages/img/white.png diff --git a/index.html b/cypress/test-pages/index.html old mode 100755 new mode 100644 similarity index 84% rename from index.html rename to cypress/test-pages/index.html index fc6d1bd..dc9bad8 --- a/index.html +++ b/cypress/test-pages/index.html @@ -4,7 +4,7 @@