mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-10594] Run unit tests in headless mode (#8141)
* AAE-10594 - changed karma configs to run unit tests in headless mode * AAE-10594 - removed commets * [AAE-10594] fixed failing test
This commit is contained in:
parent
2062d4744c
commit
058cd9e01c
@ -50,7 +50,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: false
|
||||
});
|
||||
};
|
||||
|
@ -82,7 +82,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
};
|
||||
|
@ -101,7 +101,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
process.env.TZ = 'UTC';
|
||||
|
@ -69,7 +69,9 @@ describe('ClipboardService', () => {
|
||||
});
|
||||
|
||||
it('should notify copy to clipboard with message', () => {
|
||||
spyOn(navigator.clipboard, 'writeText');
|
||||
spyOn(notificationService, 'openSnackMessage');
|
||||
|
||||
inputElement.value = 'some text';
|
||||
|
||||
clipboardService.copyToClipboard(inputElement, 'success');
|
||||
|
@ -25,7 +25,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: [/*'Chrome',*/ 'ChromeHeadless'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
customLaunchers: {
|
||||
ChromeHeadless: {
|
||||
base: 'Chrome',
|
||||
|
@ -83,7 +83,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
};
|
||||
|
@ -81,7 +81,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
process.env.TZ = 'UTC';
|
||||
|
@ -77,7 +77,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
process.env.TZ = 'UTC';
|
||||
|
@ -24,7 +24,7 @@ module.exports = function (config) {
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
singleRun: true
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user