Skip to content

Commit

Permalink
Sidm 3561 compare screenshot test (#308)
Browse files Browse the repository at this point in the history
* screen shot compare test

* updated code

* updated cnp file

* added base screen shot folder to repo

* added functional-output to git ignore

* taking base screen shot is set to false

* added diff folder to screenshot folder

* added diff folder and ignore functional output

* removed some images from base folder

* added f-output folder to gitignore

* removed some images from base folder

* removed some images from base folder

* set base image to false in ui tests

* added foutput folder to gitignore

* update policy check test

* added foutput to gitignore

* updated code to run all functional tests

* updated policy check test

* added foutput to gitignore

* change name of base screen shot

* removed foutpit from gitignore

* added wait to failed tests

* added foitput to gitignore

* added ignore screen compare code

* added wait

* updates screen shot

* removed screen shot

* added foutput folder to gitignore

* applied retry

* added resemblence helper to package.json

* added resemblance helper

* enabled screen shot for visual testing

* cleaned up code

* added functional output folder to gitignore

* ingored package.lock.json

* Delete package-lock.json

* added dependencies

* added node fetch dependency

* updared lockout test

Co-authored-by: Shravan Mechineni <shravanmechineni5@gmail.com>
  • Loading branch information
sudhasane and shravanmechineni authored Feb 17, 2020
1 parent 1c4b36b commit cf1c5c0
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 3,703 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
target/
!.mvn/wrapper/maven-wrapper.jar
functional-output/
package-lock.json

### STS ###
.apt_generated
Expand Down
2 changes: 2 additions & 0 deletions Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ withPipeline(type, product, component) {

after('functionalTest:idam-preview') {
archiveArtifacts '**/build/test-results/**/*'
archiveArtifacts '**/functional-output/**/*'

publishHTML target: [
allowMissing : true,
Expand All @@ -161,6 +162,7 @@ withPipeline(type, product, component) {

after('functionalTest:idam-aat') {
archiveArtifacts '**/build/test-results/**/*'
archiveArtifacts '**/functional-output/**/*'

publishHTML target: [
allowMissing : true,
Expand Down
3 changes: 1 addition & 2 deletions Jenkinsfile_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,4 @@ withNightlyPipeline(type, product, component) {
reportName : "IDAM Web Public E2E functional tests result"
]
}

}
}
10 changes: 9 additions & 1 deletion codecept.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports.config = {
name: 'idam-web-public',
tests: './src/test/js/**/*_test.js',
output: './output',
fullPageScreenshots: true,
timeout: 180000,
bootstrap: false,
helpers: {
Expand All @@ -12,6 +13,7 @@ exports.config = {
url: TestData.WEB_PUBLIC_URL,
waitForTimeout: 60000,
waitForAction: 2000,
windowSize: "1280x960",
getPageTimeout: 20000,
chrome: {
//args: ["--proxy-server=" + process.env.PROXY_SERVER],
Expand All @@ -20,7 +22,13 @@ exports.config = {
},
idam_helper: {
"require": "./src/test/js/shared/idam_helper.js"
}
},
"ResembleHelper" : {
"require": "codeceptjs-resemblehelper",
"screenshotFolder" : "./functional-output/output/",
"baseFolder": "./functional-output/screenshots/base/",
"diffFolder": "./functional-output/screenshots/diff/"
}
},
"include": {
"I": "./src/test/js/shared/custom_steps.js"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cf1c5c0

Please sign in to comment.