diff --git a/.gitignore b/.gitignore
index 54bfd2001..57eba63ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,6 +36,7 @@ testem.log
# e2e
/e2e/*.js
/e2e/*.map
+/e2e-output
# System Files
.DS_Store
diff --git a/package.json b/package.json
index e4b5ebe6f..36a7febf0 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,9 @@
"@types/node": "~6.0.60",
"codelyzer": "~3.2.0",
"jasmine-core": "~2.6.2",
+ "jasmine-reporters": "2.2.1",
"jasmine-spec-reporter": "~4.1.0",
+ "jasmine2-protractor-utils": "1.3.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
diff --git a/protractor.conf.js b/protractor.conf.js
index 86077e063..9db00659f 100644
--- a/protractor.conf.js
+++ b/protractor.conf.js
@@ -1,7 +1,11 @@
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
+const path = require('path');
const { SpecReporter } = require('jasmine-spec-reporter');
+const jasmineReporters = require('jasmine-reporters');
+
+const projectRoot = path.resolve(__dirname);
exports.config = {
allScriptsTimeout: 11000,
@@ -9,7 +13,12 @@ exports.config = {
'./e2e/**/*.test.ts'
],
capabilities: {
- 'browserName': 'chrome'
+ 'browserName': 'chrome',
+ chromeOptions: {
+ prefs: {
+ 'credentials_enable_service': false
+ }
+ }
},
directConnect: true,
baseUrl: 'http://localhost:3000',
@@ -19,10 +28,29 @@ exports.config = {
defaultTimeoutInterval: 30000,
print: function() {}
},
+ plugins: [{
+ package: 'jasmine2-protractor-utils',
+ disableHTMLReport: false,
+ disableScreenshot: false,
+ screenshotOnExpectFailure: true,
+ screenshotOnSpecFailure: false,
+ clearFoldersBeforeTest: true,
+ htmlReportDir: `${projectRoot}/e2e-output/html-report/`,
+ screenshotPath: `${projectRoot}/e2e-output/screenshots/`
+ }],
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
+
+ jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
+ consolidateAll: true,
+ savePath: `${projectRoot}/e2e-output/junit-report`,
+ filePrefix: 'results.xml',
+ useDotNotation: false,
+ useFullTestName: false,
+ reportFailedUrl: true
+ }));
}
};
diff --git a/src/app/components/libraries/libraries.component.html b/src/app/components/libraries/libraries.component.html
index 37d46f93d..321471206 100644
--- a/src/app/components/libraries/libraries.component.html
+++ b/src/app/components/libraries/libraries.component.html
@@ -23,8 +23,8 @@
{{ 'APP.BROWSE.LIBRARIES.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.LIBRARIES.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.LIBRARIES.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.LIBRARIES.EMPTY_STATE.TEXT' | translate }} {{ 'APP.BROWSE.RECENT.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.RECENT.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.RECENT.EMPTY_STATE.TITLE' | translate }} {{ 'APP.BROWSE.RECENT.EMPTY_STATE.TEXT' | translate }}
{{ 'APP.BROWSE.SHARED.EMPTY_STATE.TITLE' | translate }}
-{{ 'APP.BROWSE.SHARED.EMPTY_STATE.TITLE' | translate }}
+{{ 'APP.BROWSE.SHARED.EMPTY_STATE.TEXT' | translate }}