Skip to content
Snippets Groups Projects
Commit 1355a0d5 authored by s87777's avatar s87777
Browse files

Test22

parent c4b42ca0
No related branches found
No related tags found
No related merge requests found
Pipeline #50063 failed
...@@ -4,3 +4,5 @@ REACT_APP_API_SERVER_URL=http://127.0.0.1:80 ...@@ -4,3 +4,5 @@ REACT_APP_API_SERVER_URL=http://127.0.0.1:80
# cf. https://github.com/facebook/create-react-app/issues/11762 # cf. https://github.com/facebook/create-react-app/issues/11762
# related to proxy-setting in package.json # related to proxy-setting in package.json
DANGEROUSLY_DISABLE_HOST_CHECK=true DANGEROUSLY_DISABLE_HOST_CHECK=true
SELENIUM_HOST = selenium__standalone-chrome
\ No newline at end of file
...@@ -10,7 +10,11 @@ build_test_frontend: ...@@ -10,7 +10,11 @@ build_test_frontend:
stage: build stage: build
services: services:
- docker:19.03.12-dind - docker:19.03.12-dind
- selenium/standalone-chrome - name: selenium/standalone-chrome
alias: chrome
variables:
SELENIUM_HOST: chrome
script: script:
- echo "install npm" - echo "install npm"
......
...@@ -6,7 +6,7 @@ describe("Login Test", function () { ...@@ -6,7 +6,7 @@ describe("Login Test", function () {
let driver:WebDriver; let driver:WebDriver;
beforeEach(async function () { beforeEach(async function () {
driver = await new Builder().forBrowser("chrome").usingServer(`http://${process.env.HOSTNAME}:4444`).setChromeOptions(new chrome.Options().headless().windowSize({width: 1920, height: 1080})).build(); driver = await new Builder().forBrowser("chrome").usingServer(`http://${process.env.SELENIUM_HOST}:4444`).setChromeOptions(new chrome.Options().headless().windowSize({width: 1920, height: 1080})).build();
//driver = await new Builder().forBrowser("chrome").setChromeOptions(new chrome.Options().headless()).build(); //driver = await new Builder().forBrowser("chrome").setChromeOptions(new chrome.Options().headless()).build();
//navigate to the application //navigate to the application
await driver.get(`http://localhost:3000`); await driver.get(`http://localhost:3000`);
......
...@@ -6,7 +6,7 @@ describe("User Management Test", function () { ...@@ -6,7 +6,7 @@ describe("User Management Test", function () {
let driver: WebDriver; let driver: WebDriver;
beforeEach(async function () { beforeEach(async function () {
driver = await new Builder().forBrowser("chrome").usingServer(`http://${process.env.HOSTNAME}:4444`).setChromeOptions(new chrome.Options().headless().windowSize({width: 1920, height: 1080})).build(); driver = await new Builder().forBrowser("chrome").usingServer(`http://${process.env.SELENIUM_HOST}:4444`).setChromeOptions(new chrome.Options().headless().windowSize({width: 1920, height: 1080})).build();
await driver.get(`http://localhost:3000`); await driver.get(`http://localhost:3000`);
//await driver.manage().window().maximize(); //await driver.manage().window().maximize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment