diff --git a/.layerfiles/base/Layerfile b/.layerfiles/base/Layerfile index 0f4f8dc..586d0af 100644 --- a/.layerfiles/base/Layerfile +++ b/.layerfiles/base/Layerfile @@ -17,5 +17,11 @@ RUN pwd COPY / /root RUN docker build -t image . + RUN docker run -d -p 8080:8080 image + EXPOSE WEBSITE http://localhost:8080 + +RUN curl http://localhost:8080 + +RUN docker run -it --add-host host.docker.internal:host-gateway -v $PWD:/e2e -w /e2e cypress/included:3.2.0 diff --git a/.layerfiles/cypress/Layerfile b/.layerfiles/cypress/Layerfile deleted file mode 100644 index 2abe7ff..0000000 --- a/.layerfiles/cypress/Layerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM ../base - -RUN curl http://localhost:8080 - -RUN docker run -it --add-host host.docker.internal:host-gateway -v $PWD:/e2e -w /e2e cypress/included:3.2.0 diff --git a/cypress/integration/home_page_spec.js b/cypress/integration/home_page_spec.js index aac0e30..062a7f0 100644 --- a/cypress/integration/home_page_spec.js +++ b/cypress/integration/home_page_spec.js @@ -11,6 +11,12 @@ describe('Visit Home Page', () => { expect(true).to.equal(true) }) + it('Loads modal', () => { + cy.visit('/') + + expect(true).to.equal(true) + }) + it('Has working links', () => { cy.visit('/')