diff --git a/.gitignore b/.gitignore index 685b4477..91e109c7 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,4 @@ examples/ui5-js-app/webapp/test/__screenshots__/**/*.png # btp *.mtar *.zip +*.mta diff --git a/docker/Dockerfile.standalone b/docker/Dockerfile.standalone index d79bc292..2ff9620f 100644 --- a/docker/Dockerfile.standalone +++ b/docker/Dockerfile.standalone @@ -19,15 +19,15 @@ COPY ./examples/ui5-js-app/webapp webapp COPY ./examples/ui5-js-app/ui5.yaml ui5.yaml COPY ./docker/package-standalone.json package.json # this is the standard file and allows for a simple call like "wdio" -COPY ./examples/ui5-js-app/wdio-docker-standalone.conf.js wdio.conf.js -COPY ./examples/ui5-js-app/wdio.base.conf.js wdio.base.conf.js +COPY ./examples/ui5-js-app/e2e-test-config/wdio-docker-standalone.conf.js wdio.conf.js +COPY ./examples/ui5-js-app/e2e-test-config/wdio.base.conf.js wdio.base.conf.js RUN mkdir -p report/screenshots -# install basic setup: -# - local minimal WebdriverIO environment +# install basic setup: +# - local minimal WebdriverIO environment # and setup, incl standard reporter + Chrome # - wdi5 RUN npm install # run wdio + wdi5 -CMD npm test \ No newline at end of file +CMD npm test diff --git a/docker/Dockerfile.wdi5 b/docker/Dockerfile.wdi5 index 9df31440..3b950696 100644 --- a/docker/Dockerfile.wdi5 +++ b/docker/Dockerfile.wdi5 @@ -11,8 +11,8 @@ WORKDIR /app # COPY all to root COPY ../docker/package-wdi5.json package.json COPY ../examples/ui5-js-app/webapp/test test -COPY ../examples/ui5-js-app/wdio-docker-selenium.conf.js wdio-docker-selenium.conf.js -COPY ../examples/ui5-js-app/wdio.base.conf.js wdio.base.conf.js +COPY ../examples/ui5-js-app/e2e-test-config/wdio-docker-selenium.conf.js wdio-docker-selenium.conf.js +COPY ../examples/ui5-js-app/e2e-test-config/wdio.base.conf.js wdio.base.conf.js COPY ../ wdio-ui5-service diff --git a/docker/package-app.json b/docker/package-app.json index 98bfeea2..221f9fce 100644 --- a/docker/package-app.json +++ b/docker/package-app.json @@ -4,9 +4,9 @@ "description": "test for wdi5 in docker", "keywords": ["wdio-service", "ui5", "openui5", "sapui5", "docker"], "scripts": { - "test:docker:grid": "wdio wdio-docker.conf.js", + "test:docker:grid": "wdio e2e-test-config/wdio-docker.conf.js", "start": "soerver -d ./webapp -p 8888 -x ./webapp/proxyrc.json", - "test:standalone": "wdio run wdio-docker-standalone.conf.js", + "test:standalone": "wdio run e2e-test-config/wdio-docker-standalone.conf.js", "test:docker:standalone": "run-p start test:standalone" }, "devDependencies": { diff --git a/docker/package-standalone.json b/docker/package-standalone.json index 9ab30339..eb4ab466 100644 --- a/docker/package-standalone.json +++ b/docker/package-standalone.json @@ -6,7 +6,7 @@ "start:webserver": "soerver -d ./webapp -p 8888 -x ./webapp/proxyrc.json", "//start:ui5-tooling": "have /app/webapp served on :8080 via ui5 tooling + simpleproxy", "start:ui5-tooling": "ui5 serve", - "wdi5": "wdio run wdio.conf.js --spec basic.test", + "wdi5": "wdio run e2e-test-config/wdio.conf.js --spec basic.test", "test": "run-p -r start:* wdi5" }, "devDependencies": { diff --git a/docker/package-wdi5-dev.json b/docker/package-wdi5-dev.json index 5d1a2f7f..f332a86d 100644 --- a/docker/package-wdi5-dev.json +++ b/docker/package-wdi5-dev.json @@ -4,9 +4,9 @@ "description": "test for wdi5 in docker", "keywords": ["wdio-service", "ui5", "openui5", "sapui5", "docker"], "scripts": { - "test:docker:grid": "wdio wdio-docker.conf.js", + "test:docker:grid": "wdio e2e-test-config/wdio-docker.conf.js", "start": "soerver -d ./webapp -p 8888 -x ./webapp/proxyrc.json", - "test:standalone": "wdio run wdio-docker-standalone.conf.js", + "test:standalone": "wdio run e2e-test-config/wdio-docker-standalone.conf.js", "test:docker:standalone": "run-p start test:standalone" }, "devDependencies": { diff --git a/docker/package-wdi5.json b/docker/package-wdi5.json index 55b1119e..d9f1ab37 100644 --- a/docker/package-wdi5.json +++ b/docker/package-wdi5.json @@ -4,10 +4,10 @@ "description": "test for wdi5 in docker", "keywords": ["wdio-service", "ui5", "openui5", "sapui5", "docker"], "scripts": { - "test:docker:grid": "wdio wdio-docker.conf.js", - "test:docker:selenium": "wdio wdio-docker-selenium.conf.js", + "test:docker:grid": "wdio e2e-test-config/wdio-docker.conf.js", + "test:docker:selenium": "wdio e2e-test-config/wdio-docker-selenium.conf.js", "start": "soerver -d ./webapp -p 8888 -x ./webapp/proxyrc.json", - "test:standalone": "wdio run wdio-docker-standalone.conf.js", + "test:standalone": "wdio run e2e-test-config/wdio-docker-standalone.conf.js", "test:docker:standalone": "run-p start test:standalone" }, "devDependencies": { diff --git a/examples/ui5-js-app/wdi5-multiversion.js b/examples/ui5-js-app/e2e-test-config/wdi5-multiversion.js similarity index 85% rename from examples/ui5-js-app/wdi5-multiversion.js rename to examples/ui5-js-app/e2e-test-config/wdi5-multiversion.js index 3b4a79cc..205a87aa 100644 --- a/examples/ui5-js-app/wdi5-multiversion.js +++ b/examples/ui5-js-app/e2e-test-config/wdi5-multiversion.js @@ -11,9 +11,9 @@ const versions = ["", "1.71.19", "1.84.3"] ;(async () => { for (const version of versions) { // create an index.html for bootstrapping per version - const targetIndex = path.resolve(__dirname, `webapp/index-${version}.html`) + const targetIndex = path.resolve(__dirname, `../webapp/index-${version}.html`) const bootstrapSrc = `https://openui5nightly.hana.ondemand.com/${version}/resources/sap-ui-core.js` - fsExtra.copySync(path.resolve(__dirname, `webapp/index.html`), targetIndex) + fsExtra.copySync(path.resolve(__dirname, `../webapp/index.html`), targetIndex) const optionsIndex = { files: targetIndex, from: [/src=\".*\"/, /"sap_horizon"/], @@ -30,7 +30,7 @@ const versions = ["", "1.71.19", "1.84.3"] from: [/url: "#"/, /specs: \[.*\]/], to: [ `url: "index-${version}"`, // this is only b/c of the "soerver" webserver in use... - `specs: ["${path.resolve(__dirname, "webapp/test/e2e/properties-matcher.test.js")}"]` + `specs: ["${path.resolve(__dirname, "../webapp/test/e2e/properties-matcher.test.js")}"]` ] } await replace(optionsWdioConf) diff --git a/examples/ui5-js-app/wdio-docker-selenium.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-docker-selenium.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-docker-selenium.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-docker-selenium.conf.js diff --git a/examples/ui5-js-app/wdio-docker-standalone.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-docker-standalone.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-docker-standalone.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-docker-standalone.conf.js diff --git a/examples/ui5-js-app/wdio-docker.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-docker.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-docker.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-docker.conf.js diff --git a/examples/ui5-js-app/wdio-selenium-service.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-selenium-service.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-selenium-service.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-selenium-service.conf.js diff --git a/examples/ui5-js-app/wdio-ui5-late.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-ui5-late.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-ui5-late.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-ui5-late.conf.js diff --git a/examples/ui5-js-app/wdio-ui5tooling.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-ui5tooling.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-ui5tooling.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-ui5tooling.conf.js diff --git a/examples/ui5-js-app/wdio-webserver.conf.js b/examples/ui5-js-app/e2e-test-config/wdio-webserver.conf.js similarity index 100% rename from examples/ui5-js-app/wdio-webserver.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio-webserver.conf.js diff --git a/examples/ui5-js-app/wdio.base.conf.js b/examples/ui5-js-app/e2e-test-config/wdio.base.conf.js similarity index 100% rename from examples/ui5-js-app/wdio.base.conf.js rename to examples/ui5-js-app/e2e-test-config/wdio.base.conf.js diff --git a/examples/ui5-js-app/package.json b/examples/ui5-js-app/package.json index d2bd2816..bad5e8f4 100644 --- a/examples/ui5-js-app/package.json +++ b/examples/ui5-js-app/package.json @@ -11,11 +11,11 @@ "test": "run-s test:*", "test-h": "run-s \"test:* -- --headless\"", "start": "soerver -d ./webapp -p 8888 -x ./webapp/proxyrc.json", - "test:lateInject": "wdio run wdio-ui5-late.conf.js", - "test:ui5tooling": "wdio run wdio-ui5tooling.conf.js", - "test:webserver": "wdio run wdio-webserver.conf.js", - "test:multiversion": "node wdi5-multiversion.js", - "test-selenium": "wdio run wdio-selenium-service.conf.js" + "test:lateInject": "wdio run e2e-test-config/wdio-ui5-late.conf.js", + "test:ui5tooling": "wdio run e2e-test-config/wdio-ui5tooling.conf.js", + "test:webserver": "wdio run e2e-test-config/wdio-webserver.conf.js", + "test:multiversion": "node e2e-test-config/wdi5-multiversion.js", + "test-selenium": "wdio run e2e-test-config/wdio-selenium-service.conf.js" }, "devDependencies": { "@ui5/cli": "^2.14.9",