[fix-build] add stable version chrome in travis conf (#2819)

* chrome stable
This commit is contained in:
Eugenio Romano 2018-01-10 14:53:47 +00:00 committed by GitHub
parent 344725d6b5
commit 932a23d449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 3 deletions

View File

@ -4,6 +4,9 @@ sudo: false
node_js:
- "8"
addons:
chrome: stable
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"

View File

@ -76,6 +76,18 @@ module.exports = function (config) {
browsers: ['Chrome'],
customLaunchers: {
ChromeHeadless: {
base: 'Chrome',
flags: [
'--no-sandbox',
'--headless',
'--disable-gpu',
'--remote-debugging-port=9222'
]
}
},
// Karma plugins loaded
plugins: [
require('../node_modules/karma-jasmine'),

View File

@ -30,7 +30,6 @@ import { ImageResolver } from '../document-list/data/image-resolver.model';
})
export class ContentNodeSelectorComponent {
/**
* @deprecated in 2.1.0
*/

View File

@ -54,8 +54,8 @@ export class CardViewTextItemComponent implements OnChanges {
setEditMode(editStatus: boolean): void {
this.inEdit = editStatus;
setTimeout(() => {
if(this.editorInput) {
this.editorInput.nativeElement.click();
if (this.editorInput) {
this.editorInput.nativeElement.click();
}
}, 0);
}