E2E - fixing

This commit is contained in:
Vito Albano
2023-12-05 17:27:49 +00:00
parent 7e4604ef41
commit 4e0b76c066
4 changed files with 6 additions and 4 deletions

View File

@@ -20,7 +20,8 @@
"zen-observable", "zen-observable",
"subscriptions-transport-ws", "subscriptions-transport-ws",
"d", "d",
"chart.js" "chart.js",
"cropperjs"
], ],
"outputPath": "dist/demo-shell", "outputPath": "dist/demo-shell",
"index": "demo-shell/src/index.html", "index": "demo-shell/src/index.html",

View File

@@ -16,7 +16,8 @@
"zen-observable", "zen-observable",
"subscriptions-transport-ws", "subscriptions-transport-ws",
"d", "d",
"chart.js" "chart.js",
"cropperjs"
], ],
"outputPath": "dist/demo-shell", "outputPath": "dist/demo-shell",
"index": "demo-shell/src/index.html", "index": "demo-shell/src/index.html",

View File

@@ -208,7 +208,7 @@ export class MetadataViewPage {
} }
async changeContentType(option: string, attempt = 0, maxAttempt = 3): Promise<boolean> { async changeContentType(option: string, attempt = 0, maxAttempt = 3): Promise<boolean> {
const nodeType = TestElement.byCss('div[data-automation-id="header-nodeType"] .mat-select-trigger'); const nodeType = TestElement.byCss('div[data-automation-id="header-nodeType"] .mat-mdc-select-trigger');
if (attempt > maxAttempt) { if (attempt > maxAttempt) {
Logger.error(`content type select option not found. check acs version may be lesser than 7.0.0`); Logger.error(`content type select option not found. check acs version may be lesser than 7.0.0`);
return false; return false;

View File

@@ -131,7 +131,7 @@ describe('TaskHeaderCloudComponent', () => {
xit('should display priority with default values', async () => { xit('should display priority with default values', async () => {
fixture.detectChanges(); fixture.detectChanges();
const priorityEl = fixture.debugElement.nativeElement.querySelector('[data-automation-id="header-priority"] .mat-select-trigger'); const priorityEl = fixture.debugElement.nativeElement.querySelector('[data-automation-id="header-priority"] .mat-mdc-select-trigger');
expect(priorityEl).toBeDefined(); expect(priorityEl).toBeDefined();
expect(priorityEl).not.toBeNull(); expect(priorityEl).not.toBeNull();