mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[affected:*][ci:force] Fixed e2e with new notation
This commit is contained in:
@@ -20,6 +20,7 @@ export const materialLocators = {
|
|||||||
root: 'mat-error'
|
root: 'mat-error'
|
||||||
},
|
},
|
||||||
Tooltip: {
|
Tooltip: {
|
||||||
root: 'mat-tooltip-component'
|
root: 'mat-tooltip-component',
|
||||||
|
message: '.mdc-tooltip__surface'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -21,7 +21,7 @@ import { materialLocators } from './material-locators';
|
|||||||
|
|
||||||
export class TooltipComponent extends BaseComponent {
|
export class TooltipComponent extends BaseComponent {
|
||||||
private static rootElement = materialLocators.Tooltip.root;
|
private static rootElement = materialLocators.Tooltip.root;
|
||||||
public content = this.getChild('div');
|
public content = this.getChild(materialLocators.Tooltip.message);
|
||||||
|
|
||||||
constructor(page: Page) {
|
constructor(page: Page) {
|
||||||
super(page, TooltipComponent.rootElement);
|
super(page, TooltipComponent.rootElement);
|
||||||
|
@@ -69,8 +69,7 @@ describe('Login component - SSO', () => {
|
|||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
browser.params.testConfig.appConfig.oauth2.clientId,
|
browser.params.testConfig.appConfig.oauth2.clientId,
|
||||||
browser.params.testConfig.appConfig.oauth2.redirectUriLogout,
|
browser.params.testConfig.appConfig.oauth2.redirectUriLogout);
|
||||||
false);
|
|
||||||
|
|
||||||
await loginPage.waitForElements();
|
await loginPage.waitForElements();
|
||||||
|
|
||||||
|
@@ -122,8 +122,8 @@ describe('InfiniteScrollDatasource', () => {
|
|||||||
expect(renderedItems[0].innerText).toBe('test1');
|
expect(renderedItems[0].innerText).toBe('test1');
|
||||||
expect(renderedItems[2].innerText).toBe('test3');
|
expect(renderedItems[2].innerText).toBe('test3');
|
||||||
});
|
});
|
||||||
// eslint-disable-next-line
|
|
||||||
xit('should load next batch when user scrolls towards the end of the list', fakeAsync(() => {
|
it('should load next batch when user scrolls towards the end of the list', fakeAsync(() => {
|
||||||
fixture.autoDetectChanges();
|
fixture.autoDetectChanges();
|
||||||
const stable = fixture.whenStable();
|
const stable = fixture.whenStable();
|
||||||
const renderingDone = fixture.whenRenderingDone();
|
const renderingDone = fixture.whenRenderingDone();
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of select that may no longer apply for the MDC version. */
|
||||||
.mat-select-value {
|
.mat-mdc-select-value {
|
||||||
color: var(--adf-metadata-action-button-clear-color);
|
color: var(--adf-metadata-action-button-clear-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&-input-form-field-divider {
|
&-input-form-field-divider {
|
||||||
|
|
||||||
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
/* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
|
||||||
.mat-form-field-underline {
|
.mat-form-field-underline {
|
||||||
background-color: var(--adf-theme-primary-50);
|
background-color: var(--adf-theme-primary-50);
|
||||||
|
@@ -391,12 +391,12 @@ export const materialLocators = {
|
|||||||
root: 'mat-tab-label-active'
|
root: 'mat-tab-label-active'
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
class: '.mat-mdc-tab-label-content',
|
class: '.mdc-tab__content',
|
||||||
root: 'mat-tab-label-content'
|
root: 'mat-tab-label-content'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
labels: {
|
labels: {
|
||||||
class: '.mat-mdc-tab-labels'
|
class: '.mdc-tab__text-label'
|
||||||
},
|
},
|
||||||
list: '.mat-mdc-tab-list'
|
list: '.mat-mdc-tab-list'
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user