Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
profwebfrontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
s87777
profwebfrontend
Commits
0e71ca37
Commit
0e71ca37
authored
1 year ago
by
s87777
Browse files
Options
Downloads
Patches
Plain Diff
Test23
parent
1355a0d5
No related branches found
No related tags found
No related merge requests found
Pipeline
#50068
failed
1 year ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env
+1
-1
1 addition, 1 deletion
.env
.gitlab-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab-ci.yml
src/test/LoginTest.test.ts
+1
-1
1 addition, 1 deletion
src/test/LoginTest.test.ts
src/test/UserManagement.test.ts
+1
-1
1 addition, 1 deletion
src/test/UserManagement.test.ts
with
5 additions
and
5 deletions
.env
+
1
−
1
View file @
0e71ca37
...
@@ -5,4 +5,4 @@ REACT_APP_API_SERVER_URL=http://127.0.0.1:80
...
@@ -5,4 +5,4 @@ REACT_APP_API_SERVER_URL=http://127.0.0.1:80
# 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
APP_TESTS_REMOTE_WEB_DRIVER_URL = selenium__standalone-chrome
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
2
View file @
0e71ca37
...
@@ -14,7 +14,7 @@ build_test_frontend:
...
@@ -14,7 +14,7 @@ build_test_frontend:
alias
:
chrome
alias
:
chrome
variables
:
variables
:
SELENIUM_HOST
:
chrome
APP_TESTS_REMOTE_WEB_DRIVER_URL
:
"
http://chrome:4444"
script
:
script
:
-
echo "install npm"
-
echo "install npm"
...
@@ -31,7 +31,7 @@ build_test_frontend:
...
@@ -31,7 +31,7 @@ build_test_frontend:
-
echo "docker commands success"
-
echo "docker commands success"
-
npm start &
-
npm start &
-
echo "start test"
-
echo "start test"
-
npm test --host=
selenium__standalone-chrome
-
npm test --host=
$SELENIUM_HOST
-
echo "Testing finshed"
-
echo "Testing finshed"
tags
:
tags
:
...
...
This diff is collapsed.
Click to expand it.
src/test/LoginTest.test.ts
+
1
−
1
View file @
0e71ca37
...
@@ -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
.
SELENIUM_HOST
}
:4444
`
).
setChromeOptions
(
new
chrome
.
Options
().
headless
().
windowSize
({
width
:
1920
,
height
:
1080
})).
build
();
driver
=
await
new
Builder
().
forBrowser
(
"
chrome
"
).
usingServer
(
`
${
process
.
env
.
APP_TESTS_REMOTE_WEB_DRIVER_URL
}
`
).
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`
);
...
...
This diff is collapsed.
Click to expand it.
src/test/UserManagement.test.ts
+
1
−
1
View file @
0e71ca37
...
@@ -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
.
SELENIUM_HOST
}
:4444
`
).
setChromeOptions
(
new
chrome
.
Options
().
headless
().
windowSize
({
width
:
1920
,
height
:
1080
})).
build
();
driver
=
await
new
Builder
().
forBrowser
(
"
chrome
"
).
usingServer
(
`
${
process
.
env
.
APP_TESTS_REMOTE_WEB_DRIVER_URL
}
`
).
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();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment