GUI2 fixed some unit tests
and updated documentation
Change-Id: Icb66f91b64172359c9ddadd4bfd2531ed28f5be0
diff --git a/web/gui2/src/main/webapp/app/view/apps/appsdetails/appsdetails.component.spec.ts b/web/gui2/src/main/webapp/app/view/apps/appsdetails/appsdetails.component.spec.ts
index ed45a02..f348046 100644
--- a/web/gui2/src/main/webapp/app/view/apps/appsdetails/appsdetails.component.spec.ts
+++ b/web/gui2/src/main/webapp/app/view/apps/appsdetails/appsdetails.component.spec.ts
@@ -153,7 +153,7 @@
const appDe: DebugElement = fixture.debugElement;
const divDe = appDe.query(By.css('div.top-content div.right table.app-props'));
const div: HTMLElement = divDe.nativeElement;
- expect(div.textContent).toEqual('%app_id%:%state%:%category%:%version%:%origin%:%role%:');
+ expect(div.textContent).toEqual('%app_id%%state%%category%%version%%origin%%role%');
});
it('should have an a inside an div.app-url inside a div.top-content', () => {
diff --git a/web/gui2/src/main/webapp/app/view/port/portdetails/portdetails.component.spec.ts b/web/gui2/src/main/webapp/app/view/port/portdetails/portdetails.component.spec.ts
index 9cae299..32a50e92 100644
--- a/web/gui2/src/main/webapp/app/view/port/portdetails/portdetails.component.spec.ts
+++ b/web/gui2/src/main/webapp/app/view/port/portdetails/portdetails.component.spec.ts
@@ -120,6 +120,6 @@
const portDe: DebugElement = fixture.debugElement;
const divDe = portDe.query(By.css('div.top-content div.top-tables div.left'));
const div: HTMLElement = divDe.nativeElement;
- expect(div.textContent).toEqual('ID :Device :Type :Speed :Enabled :');
+ expect(div.textContent).toEqual('IDDeviceTypeSpeedEnabled');
});
});
diff --git a/web/gui2/src/main/webapp/karma.conf.js b/web/gui2/src/main/webapp/karma.conf.js
index 20c914f..44a02b5 100644
--- a/web/gui2/src/main/webapp/karma.conf.js
+++ b/web/gui2/src/main/webapp/karma.conf.js
@@ -45,13 +45,7 @@
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
- customLaunchers: {
- ChromeHeadlessNoSandbox: {
- base: 'ChromeHeadless',
- flags: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage']
- }
- },
- browsers: ['ChromeHeadlessNoSandbox', 'Firefox'],
+ browsers: ['ChromeHeadless', 'FirefoxHeadless'],
singleRun: false,
restartOnFileChange: true
});