mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Rebased with the latest develop
This commit is contained in:
parent
0cbae76794
commit
b256b970da
@ -200,7 +200,7 @@ describe('AmountWidgetComponent - rendering', () => {
|
|||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
|
||||||
const field = await loader.getHarness(MatFormFieldHarness);
|
const field = await loader.getHarness(MatFormFieldHarness);
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Check Placeholder Text'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Check Placeholder Text'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
expect(await field.getPrefixText()).toBe('$');
|
expect(await field.getPrefixText()).toBe('$');
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ describe('TextWidgetComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Your name here'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Your name here'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ describe('TextWidgetComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should show the field placeholder', async () => {
|
it('should show the field placeholder', async () => {
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'simple placeholder'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'simple placeholder'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ describe('TextWidgetComponent', () => {
|
|||||||
const input = await loader.getHarness(MatInputHarness);
|
const input = await loader.getHarness(MatInputHarness);
|
||||||
await (await input.host()).click();
|
await (await input.host()).click();
|
||||||
|
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'simple placeholder'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'simple placeholder'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -401,7 +401,7 @@ describe('TextWidgetComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should show the input mask placeholder', async () => {
|
it('should show the input mask placeholder', async () => {
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Phone : (__) ___-___'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Phone : (__) ___-___'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ describe('TextWidgetComponent', () => {
|
|||||||
const input = await loader.getHarness(MatInputHarness);
|
const input = await loader.getHarness(MatInputHarness);
|
||||||
await (await input.host()).click();
|
await (await input.host()).click();
|
||||||
|
|
||||||
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Phone : (__) ___-___'}))
|
const inputField = await loader.getHarness(MatInputHarness.with({placeholder: 'Phone : (__) ___-___'}));
|
||||||
expect(inputField).toBeTruthy();
|
expect(inputField).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user