Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
ajs12_shop
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Egor Kremnev
ajs12_shop
Commits
31b9bbf9
Commit
31b9bbf9
authored
Jun 20, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename test database. remove test log files
parent
de749d46
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
35 additions
and
56 deletions
+35
-56
config.js
api_client/config.js
+1
-1
package-lock.json
front_client/package-lock.json
+0
-32
codecept.conf.js
tests/codecept.conf.js
+2
-1
.gitignore
tests/output/.gitignore
+2
-0
Failed_register_missing_password.failed.png
tests/output/Failed_register_missing_password.failed.png
+0
-0
Success_register.failed.png
tests/output/Success_register.failed.png
+0
-0
Success_register_after_already_exist.failed.png
tests/output/Success_register_after_already_exist.failed.png
+0
-0
package-lock.json
tests/package-lock.json
+19
-19
package.json
tests/package.json
+1
-1
shell.sh
tests/shell.sh
+10
-2
No files found.
api_client/config.js
View file @
31b9bbf9
...
...
@@ -9,6 +9,6 @@ module.exports = {
uploadPath
:
path
.
join
(
rootPath
,
'public'
,
'uploads'
),
db
:
{
host
:
'mongodb://127.0.0.1'
,
database
:
isTest
?
'shop
-
test'
:
'shop'
,
database
:
isTest
?
'shop
_
test'
:
'shop'
,
}
};
front_client/package-lock.json
View file @
31b9bbf9
...
...
@@ -4019,25 +4019,6 @@
"url"
:
"https://github.com/sponsors/gregberge"
}
},
"node_modules/@testing-library/dom"
:
{
"version"
:
"9.2.0"
,
"resolved"
:
"https://registry.npmjs.org/@testing-library/dom/-/dom-9.2.0.tgz"
,
"integrity"
:
"sha512-xTEnpUKiV/bMyEsE5bT4oYA0x0Z/colMtxzUY8bKyPXBNLn/e0V4ZjBZkEhms0xE4pv9QsPfSRu9AWS4y5wGvA=="
,
"peer"
:
true
,
"dependencies"
:
{
"@babel/code-frame"
:
"^7.10.4"
,
"@babel/runtime"
:
"^7.12.5"
,
"@types/aria-query"
:
"^5.0.1"
,
"aria-query"
:
"^5.0.0"
,
"chalk"
:
"^4.1.0"
,
"dom-accessibility-api"
:
"^0.5.9"
,
"lz-string"
:
"^1.5.0"
,
"pretty-format"
:
"^27.0.2"
},
"engines"
:
{
"node"
:
">=14"
}
},
"node_modules/@testing-library/jest-dom"
:
{
"version"
:
"5.16.5"
,
"resolved"
:
"https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz"
,
...
...
@@ -16333,19 +16314,6 @@
"is-typedarray"
:
"^1.0.0"
}
},
"node_modules/typescript"
:
{
"version"
:
"4.9.5"
,
"resolved"
:
"https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz"
,
"integrity"
:
"sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g=="
,
"peer"
:
true
,
"bin"
:
{
"tsc"
:
"bin/tsc"
,
"tsserver"
:
"bin/tsserver"
},
"engines"
:
{
"node"
:
">=4.2.0"
}
},
"node_modules/unbox-primitive"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz"
,
...
...
tests/codecept.conf.js
View file @
31b9bbf9
...
...
@@ -3,7 +3,8 @@ exports.config = {
helpers
:
{
Puppeteer
:
{
url
:
'http://localhost:3010'
,
windowSize
:
'1200x900'
windowSize
:
'1200x900'
,
show
:
false
}
},
include
:
{
...
...
tests/output/.gitignore
0 → 100644
View file @
31b9bbf9
!.gitignore
*
tests/output/Failed_register_missing_password.failed.png
deleted
100644 → 0
View file @
de749d46
29.2 KB
tests/output/Success_register.failed.png
deleted
100644 → 0
View file @
de749d46
27.6 KB
tests/output/Success_register_after_already_exist.failed.png
deleted
100644 → 0
View file @
de749d46
6.26 KB
tests/package-lock.json
View file @
31b9bbf9
...
...
@@ -6,7 +6,7 @@
""
:
{
"dependencies"
:
{
"codeceptjs"
:
"^3.4.1"
,
"puppeteer"
:
"^20.7.
0
"
"puppeteer"
:
"^20.7.
2
"
}
},
"node_modules/@babel/code-frame"
:
{
...
...
@@ -674,9 +674,9 @@
"integrity"
:
"sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
"node_modules/chromium-bidi"
:
{
"version"
:
"0.4.1
1
"
,
"resolved"
:
"https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.1
1
.tgz"
,
"integrity"
:
"sha512-
p03ajLhlQ5gebw3cmbDBFmBc2wnJM5dnXS8Phu6mblGn/KQd76yOVL5VwE0VAisa7oazNfKGTaXlIZ8Q5Bb9O
A=="
,
"version"
:
"0.4.1
2
"
,
"resolved"
:
"https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.1
2
.tgz"
,
"integrity"
:
"sha512-
yl0ngMHtYUGJa2G0lkcbPvbnUZ9WMQyMNSfYmlrGD1nHRNyI9KOGw3dOaofFugXHHToneUaSmF9iUdgCBamCj
A=="
,
"dependencies"
:
{
"mitt"
:
"3.0.0"
},
...
...
@@ -969,14 +969,14 @@
}
},
"node_modules/degenerator"
:
{
"version"
:
"4.0.
2
"
,
"resolved"
:
"https://registry.npmjs.org/degenerator/-/degenerator-4.0.
2
.tgz"
,
"integrity"
:
"sha512-
HKwIFvZROUMfH3qI3gBpD61BYh7q3c3GXD5UGZzoVNJwVSYgZKvYl1fRMXc9ozoTxl/VZxKJ5v/bA+19tywFiw
=="
,
"version"
:
"4.0.
3
"
,
"resolved"
:
"https://registry.npmjs.org/degenerator/-/degenerator-4.0.
3
.tgz"
,
"integrity"
:
"sha512-
2wY8vmCfxrQpe2PKGYdiWRre5HQRwsAXbAAWRbC+z2b80MEpnWc8A3a9k4TwqwN3Z/Fm3uhNm5vYUZIbMhyRxQ
=="
,
"dependencies"
:
{
"ast-types"
:
"^0.13.2"
,
"escodegen"
:
"^1.8.1"
,
"esprima"
:
"^4.0.0"
,
"vm2"
:
"^3.9.1
7
"
"vm2"
:
"^3.9.1
9
"
},
"engines"
:
{
"node"
:
">= 14"
...
...
@@ -2435,26 +2435,26 @@
}
},
"node_modules/puppeteer"
:
{
"version"
:
"20.7.
0
"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer/-/puppeteer-20.7.
0
.tgz"
,
"integrity"
:
"sha512-
02Chkzyjm1e1PNb1wZ8q0ggfiIxh6+UAMeZR+tnyOT+yoSBYtLRMTCLEASOXNf8fDqMejO/AxTMbllShjngVng
=="
,
"version"
:
"20.7.
2
"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer/-/puppeteer-20.7.
2
.tgz"
,
"integrity"
:
"sha512-
SKg9TgUY3TJvnOy0VrkhduSvDQIjBsi+s/Ne6S+qD53MM6emau+oh+kNqySNrT7c4qkg27UrJ9aEnltKDAQTzQ
=="
,
"hasInstallScript"
:
true
,
"dependencies"
:
{
"@puppeteer/browsers"
:
"1.4.1"
,
"cosmiconfig"
:
"8.2.0"
,
"puppeteer-core"
:
"20.7.
0
"
"puppeteer-core"
:
"20.7.
2
"
},
"engines"
:
{
"node"
:
">=16.3.0"
}
},
"node_modules/puppeteer-core"
:
{
"version"
:
"20.7.
0
"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.7.
0
.tgz"
,
"integrity"
:
"sha512-
8RNYSMsLG9EkfACK/M9yh7yLul/eH6ZCghdhE2Ru6SjnEuHZZAksSrrI2NAm1BZb/JyI9dF7kxFhqY477q2V1A
=="
,
"version"
:
"20.7.
2
"
,
"resolved"
:
"https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-20.7.
2
.tgz"
,
"integrity"
:
"sha512-
4Sd+v2YLlYMYFP/9SI/spT1joGTePwhmKP89pchUqz7VcWwv/Yh0Atmsybz+7wWT0VPDnw0UhBM6iNEfXEoUvg
=="
,
"dependencies"
:
{
"@puppeteer/browsers"
:
"1.4.1"
,
"chromium-bidi"
:
"0.4.1
1
"
,
"chromium-bidi"
:
"0.4.1
2
"
,
"cross-fetch"
:
"3.1.6"
,
"debug"
:
"4.3.4"
,
"devtools-protocol"
:
"0.0.1135028"
,
...
...
@@ -2911,9 +2911,9 @@
}
},
"node_modules/vm2/node_modules/acorn"
:
{
"version"
:
"8.
8.2
"
,
"resolved"
:
"https://registry.npmjs.org/acorn/-/acorn-8.
8.2
.tgz"
,
"integrity"
:
"sha512-
xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw
=="
,
"version"
:
"8.
9.0
"
,
"resolved"
:
"https://registry.npmjs.org/acorn/-/acorn-8.
9.0
.tgz"
,
"integrity"
:
"sha512-
jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ
=="
,
"bin"
:
{
"acorn"
:
"bin/acorn"
},
...
...
tests/package.json
View file @
31b9bbf9
{
"dependencies"
:
{
"codeceptjs"
:
"^3.4.1"
,
"puppeteer"
:
"^20.7.
0
"
"puppeteer"
:
"^20.7.
2
"
},
"scripts"
:
{
"start"
:
"codeceptjs run --steps"
,
...
...
tests/shell.sh
View file @
31b9bbf9
...
...
@@ -3,12 +3,20 @@ REAL_PATH=`dirname $0`
cd
$REAL_PATH
CURRENT_DIR
=
`
pwd
`
echo
'# API'
cd
$CURRENT_DIR
/../api_client
echo
'# Running fixtures'
npm run seed:test
echo
'# Tests'
cd
$CURRENT_DIR
/../tests
npm start
echo
"# Running tests"
npm run start
EXIT_CODE
=
$?
mongosh shop_test
--eval
"db.dropDatabase()"
exit
0
exit
${
EXIT_CODE
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment