mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3671] Rename Automation Tests (#3931)
* [ADF-3671] Rename Automation Tests * [ADF-3671] Fix multiline widget automation test * [ADF-3671] Remove fit from automation tests
This commit is contained in:
committed by
Eugenio Romano
parent
afd44afea6
commit
3639cc40e7
@@ -78,7 +78,7 @@ describe('Amount Widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274703] General, advanced, Amount and Visibility properties', () => {
|
it('[C274703] Should be possible to set general, advance and visibility properties for Amount Widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.amount_input_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.amount_input_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.amount_input_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.amount_input_id);
|
||||||
|
@@ -75,7 +75,7 @@ describe('Attach Folder widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276745] Attach folder widget - Visibility', () => {
|
it('[C276745] Should be possible to set visibility properties for Attach Folder Widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.upload_button_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.upload_button_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.upload_button_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.upload_button_id);
|
||||||
|
@@ -76,7 +76,7 @@ describe('Checkbox Widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268554] Checkbox widget - General settings', () => {
|
it('[C268554] Should be able to set general settings for Checkbox widget ', () => {
|
||||||
taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2);
|
taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2);
|
||||||
expect(widget.checkboxWidget().getCheckboxLabel()).toContain(app.FIELD.checkbox_label);
|
expect(widget.checkboxWidget().getCheckboxLabel()).toContain(app.FIELD.checkbox_label);
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
@@ -84,7 +84,7 @@ describe('Checkbox Widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C272812] Checkbox widget - Visibility settings', () => {
|
it('[C272812] Should be able to set visibility settings for Checkbox widget', () => {
|
||||||
widget.checkboxWidget().isCheckboxHidden(app.FIELD.checkbox_field_id);
|
widget.checkboxWidget().isCheckboxHidden(app.FIELD.checkbox_field_id);
|
||||||
taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2);
|
taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2);
|
||||||
widget.checkboxWidget().isCheckboxDisplayed(app.FIELD.checkbox_field_id);
|
widget.checkboxWidget().isCheckboxDisplayed(app.FIELD.checkbox_field_id);
|
||||||
|
@@ -76,7 +76,7 @@ describe('Date and time widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('C268818] Date and time widget - General properties', () => {
|
it('[C268818] Should be able to set general settings for Date Time widget', () => {
|
||||||
expect(widget.dateTimeWidget().getDateTimeLabel(app.FIELD.date_time_input)).toContain('Date');
|
expect(widget.dateTimeWidget().getDateTimeLabel(app.FIELD.date_time_input)).toContain('Date');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ describe('Date and time widget', () => {
|
|||||||
expect(widget.dateTimeWidget().getPlaceholder(app.FIELD.date_time_between_input)).toBe('Choose anything...');
|
expect(widget.dateTimeWidget().getPlaceholder(app.FIELD.date_time_between_input)).toBe('Choose anything...');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268819] Date and time widget - Advanced properties', () => {
|
it('[C268819] Should be able to set advanced settings for Date Time widget ', () => {
|
||||||
widget.dateTimeWidget().openDatepicker(app.FIELD.date_time_between_input);
|
widget.dateTimeWidget().openDatepicker(app.FIELD.date_time_between_input);
|
||||||
widget.dateTimeWidget().closeDataTimeWidget();
|
widget.dateTimeWidget().closeDataTimeWidget();
|
||||||
widget.dateTimeWidget().setDateTimeInput(app.FIELD.date_time_between_input, '20-03-17 07:30 PM');
|
widget.dateTimeWidget().setDateTimeInput(app.FIELD.date_time_between_input, '20-03-17 07:30 PM');
|
||||||
|
@@ -76,7 +76,7 @@ describe('Date widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268814] Date Widget - General Properties', () => {
|
it('[C268814] Should be able to set general settings for Date widget', () => {
|
||||||
expect(widget.dateWidget().getDateLabel(app.FIELD.date_input)).toContain('Date');
|
expect(widget.dateWidget().getDateLabel(app.FIELD.date_input)).toContain('Date');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
widget.dateWidget().setDateInput(app.FIELD.date_input, '20-10-2018');
|
widget.dateWidget().setDateInput(app.FIELD.date_input, '20-10-2018');
|
||||||
@@ -84,7 +84,7 @@ describe('Date widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277234] Date widget - Advanced properties', () => {
|
it('[C277234] Should be able to set advanced settings for Date widget ', () => {
|
||||||
widget.dateWidget().setDateInput(app.FIELD.date_between_input, '20-10-2017');
|
widget.dateWidget().setDateInput(app.FIELD.date_between_input, '20-10-2017');
|
||||||
widget.dateWidget().clickOutsideWidget(app.FIELD.date_between_input);
|
widget.dateWidget().clickOutsideWidget(app.FIELD.date_between_input);
|
||||||
expect(widget.dateWidget().getErrorMessage(app.FIELD.date_between_input)).toBe('Can\'t be less than 1-10-2018');
|
expect(widget.dateWidget().getErrorMessage(app.FIELD.date_between_input)).toBe('Can\'t be less than 1-10-2018');
|
||||||
|
@@ -76,7 +76,7 @@ describe('Dropdown widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C269051] General and Options properties', () => {
|
it('[C269051] Should be possible to set general and options properties for Dropdown widget ', () => {
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
|
|
||||||
widget.dropdown().selectOption('Happy');
|
widget.dropdown().selectOption('Happy');
|
||||||
@@ -92,7 +92,7 @@ describe('Dropdown widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C269052] Dropdown menu - Visibility', () => {
|
it('[C269052] Should be possible to set visibility properties for Dropdown widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.dropdown_visible);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.dropdown_visible);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.dropdown_visible);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.dropdown_visible);
|
||||||
|
@@ -37,7 +37,7 @@ describe('Dynamic Table widget ', () => {
|
|||||||
let appModel;
|
let appModel;
|
||||||
let deployedApp, process;
|
let deployedApp, process;
|
||||||
|
|
||||||
describe('with date widget', () => {
|
describe('with Date Time Widget App', () => {
|
||||||
let app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE;
|
let app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE;
|
||||||
|
|
||||||
beforeAll(async (done) => {
|
beforeAll(async (done) => {
|
||||||
@@ -78,26 +78,26 @@ describe('Dynamic Table widget ', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276729] Dynamic table widget - Visiblity', () => {
|
it('[C276729] Should be possible to set visibility properties for Dynamic Table', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.dynamic_table_age_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.dynamic_table_age_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.dynamic_table_age_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.dynamic_table_age_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279349] Dynamic table with Datetime', () => {
|
it('[C279349] Should be able to have a Date Time widget in a Dynamic Table widget', () => {
|
||||||
widget.dynamicTable().clickAddButton();
|
widget.dynamicTable().clickAddButton();
|
||||||
widget.dateTimeWidget().openDatepicker(app.FIELD.dataTime_input_id);
|
widget.dateTimeWidget().openDatepicker(app.FIELD.dateTime_input_id);
|
||||||
widget.dateTimeWidget().selectDay('10');
|
widget.dateTimeWidget().selectDay('10');
|
||||||
widget.dateTimeWidget().selectHour('8');
|
widget.dateTimeWidget().selectHour('8');
|
||||||
widget.dateTimeWidget().selectMinute('30');
|
widget.dateTimeWidget().selectMinute('30');
|
||||||
widget.dateTimeWidget().clearDateTimeInput(app.FIELD.dataTime_input_id);
|
widget.dateTimeWidget().clearDateTimeInput(app.FIELD.dateTime_input_id);
|
||||||
|
|
||||||
widget.dynamicTable().clickSaveButton();
|
widget.dynamicTable().clickSaveButton();
|
||||||
widget.dynamicTable().getTableRow(0);
|
widget.dynamicTable().getTableRow(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('with date widget', () => {
|
describe('with People Widget App', () => {
|
||||||
|
|
||||||
let app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE_USERS;
|
let app = resources.Files.WIDGET_CHECK_APP.DYNAMIC_TABLE_USERS;
|
||||||
|
|
||||||
@@ -139,7 +139,7 @@ describe('Dynamic Table widget ', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C260407] should check Dynamic Table widget', () => {
|
it('[C260407] Should be able to add/delete/update row in Dynamic Table widget', () => {
|
||||||
|
|
||||||
widget.dynamicTable().clickAddRow();
|
widget.dynamicTable().clickAddRow();
|
||||||
widget.dynamicTable().setDatatableInput('User1');
|
widget.dynamicTable().setDatatableInput('User1');
|
||||||
|
@@ -76,7 +76,7 @@ describe('Header widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276737] Header widget - general and visibility properties', () => {
|
it('[C276737] Should be able to set general and visibility properties for Header widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.header_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.header_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.header_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.header_id);
|
||||||
|
@@ -76,7 +76,7 @@ describe('Hyperlink widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C276728] Hyperlink widget - Visibility', () => {
|
it('[C276728] Should be able to set visibility properties for Hyperlink widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.hyperlink_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.hyperlink_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.hyperlink_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.hyperlink_id);
|
||||||
|
@@ -76,7 +76,7 @@ describe('Multi-line Widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268182] Multi-line Text Widget - General Properties', async () => {
|
it('[C268182] Should be able to set general properties for Multi-line Text Widget', () => {
|
||||||
let label = widget.multilineTextWidget().getFieldLabel(app.FIELD.multiSimple);
|
let label = widget.multilineTextWidget().getFieldLabel(app.FIELD.multiSimple);
|
||||||
expect(label).toBe('multiSimple*');
|
expect(label).toBe('multiSimple*');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
@@ -86,16 +86,15 @@ describe('Multi-line Widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268184] Multi-line Text Widget - Advanced Properties - Min and Max', async () => {
|
it('[C268184] Should be able to set advanced properties for Multi-line Text Widget', async () => {
|
||||||
widget.multilineTextWidget().setValue(app.FIELD.multiMinMax, 'A');
|
widget.multilineTextWidget().setValue(app.FIELD.multiMinMax, 'A');
|
||||||
expect(widget.multilineTextWidget().getErrorMessage(app.FIELD.multiMinMax)).toBe('Enter at least 4 characters');
|
expect(widget.multilineTextWidget().getErrorMessage(app.FIELD.multiMinMax)).toBe('Enter at least 4 characters');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
widget.multilineTextWidget().setValue(app.FIELD.multiMinMax, 'AAAAAAAAAAA');
|
widget.multilineTextWidget().setValue(app.FIELD.multiMinMax, 'AAAAAAAAAAA');
|
||||||
expect(widget.multilineTextWidget().getErrorMessage(app.FIELD.multiMinMax)).toBe('Enter no more than 10 characters');
|
expect(widget.multilineTextWidget().getErrorMessage(app.FIELD.multiMinMax)).toBe('Enter no more than 10 characters');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
});
|
widget.multilineTextWidget().setValue(app.FIELD.multiMinMax, 'AAAA');
|
||||||
|
|
||||||
it('[C268184] Multi-line Text Widget - Advanced Properties - Regex Pattern property', async () => {
|
|
||||||
widget.multilineTextWidget().setValue(app.FIELD.multiSimple, 'TEST');
|
widget.multilineTextWidget().setValue(app.FIELD.multiSimple, 'TEST');
|
||||||
widget.multilineTextWidget().setValue(app.FIELD.multiRegexp, '3');
|
widget.multilineTextWidget().setValue(app.FIELD.multiRegexp, '3');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
@@ -104,7 +103,7 @@ describe('Multi-line Widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268232] Multi-line Text Widget - Visibility properties', async () => {
|
it('[C268232] Should be able to set visibility properties for Multi-line Text Widget', async () => {
|
||||||
widget.textWidget().isWidgetNotVisible(app.FIELD.multiVisible);
|
widget.textWidget().isWidgetNotVisible(app.FIELD.multiVisible);
|
||||||
widget.textWidget().setValue(app.FIELD.showMultiHidden, '1');
|
widget.textWidget().setValue(app.FIELD.showMultiHidden, '1');
|
||||||
widget.textWidget().isWidgetVisible(app.FIELD.multiVisible);
|
widget.textWidget().isWidgetVisible(app.FIELD.multiVisible);
|
||||||
|
@@ -77,7 +77,7 @@ describe('Number widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C269111] Number Widget - General Properties', () => {
|
it('[C269111] Should be able to set general properties for Number Widget', () => {
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
expect(widget.numberWidget().getNumberFieldLabel(app.FIELD.number_general)).toContain('Number General');
|
expect(widget.numberWidget().getNumberFieldLabel(app.FIELD.number_general)).toContain('Number General');
|
||||||
expect(widget.numberWidget().getPlaceholder(app.FIELD.number_general)).toContain('Type a number');
|
expect(widget.numberWidget().getPlaceholder(app.FIELD.number_general)).toContain('Type a number');
|
||||||
@@ -86,7 +86,7 @@ describe('Number widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274702] Number Widget - Advanced and visibility properties', () => {
|
it('[C274702] Should be able to set advanced and visibility properties for Number Widget', () => {
|
||||||
widget.numberWidget().setFieldValue(app.FIELD.number_general, 2);
|
widget.numberWidget().setFieldValue(app.FIELD.number_general, 2);
|
||||||
|
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.number_visible);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.number_visible);
|
||||||
|
@@ -76,7 +76,7 @@ describe('People widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C212870] should check People widget', () => {
|
it('[C260435] Should select user from People Widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);
|
||||||
@@ -88,7 +88,7 @@ describe('People widget', () => {
|
|||||||
widget.peopleWidget().selectUserFromDropDown(admin);
|
widget.peopleWidget().selectUserFromDropDown(admin);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274707] Add people widget - Visibility', () => {
|
it('[C274707] Should be possible to set visibility properties for People Widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);
|
taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);
|
||||||
|
@@ -78,12 +78,12 @@ describe('Radio Buttons Widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C277316] Radio buttons widget - default behaviour', () => {
|
it('[C277316] Should display empty radio buttons when no preselection is configured', () => {
|
||||||
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
|
||||||
widget.radioWidget().isSelectionClean(app.FIELD.radio_buttons_id);
|
widget.radioWidget().isSelectionClean(app.FIELD.radio_buttons_id);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274704] Radio buttons widget - Visibility', () => {
|
it('[C274704] Should be able to set visibility properties for Radio Button widget', () => {
|
||||||
taskPage.formFields().checkWidgetIsHidden(app.FIELD.radio_buttons_id);
|
taskPage.formFields().checkWidgetIsHidden(app.FIELD.radio_buttons_id);
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
|
|
||||||
|
@@ -76,7 +76,7 @@ describe('Text widget', () => {
|
|||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268157] General Properties', async () => {
|
it('[C268157] Should be able to set general properties for Text widget', async () => {
|
||||||
let label = widget.textWidget().getFieldLabel(app.FIELD.simpleText);
|
let label = widget.textWidget().getFieldLabel(app.FIELD.simpleText);
|
||||||
expect(label).toBe('textSimple*');
|
expect(label).toBe('textSimple*');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
@@ -105,7 +105,7 @@ describe('Text widget', () => {
|
|||||||
expect(widget.textWidget().getFieldValue(app.FIELD.textMaskReversed)).toBe('3456-7899');
|
expect(widget.textWidget().getFieldValue(app.FIELD.textMaskReversed)).toBe('3456-7899');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C268177] Regex Pattern property', async () => {
|
it('[C268177] Should be able to set Regex Pattern property for Text widget', async () => {
|
||||||
widget.textWidget().setValue(app.FIELD.simpleText, 'TEST');
|
widget.textWidget().setValue(app.FIELD.simpleText, 'TEST');
|
||||||
widget.textWidget().setValue(app.FIELD.textRegexp, 'T');
|
widget.textWidget().setValue(app.FIELD.textRegexp, 'T');
|
||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();
|
||||||
@@ -114,7 +114,7 @@ describe('Text widget', () => {
|
|||||||
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
expect(taskPage.formFields().isCompleteFormButtonDisabled()).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C274712] Visibility condition', async () => {
|
it('[C274712] Should be able to set visibility properties for Text widget ', async () => {
|
||||||
widget.textWidget().isWidgetNotVisible(app.FIELD.textHidden);
|
widget.textWidget().isWidgetNotVisible(app.FIELD.textHidden);
|
||||||
widget.textWidget().setValue(app.FIELD.showHiddenText, '1');
|
widget.textWidget().setValue(app.FIELD.showHiddenText, '1');
|
||||||
widget.textWidget().isWidgetVisible(app.FIELD.textHidden);
|
widget.textWidget().isWidgetVisible(app.FIELD.textHidden);
|
||||||
|
@@ -261,7 +261,7 @@ exports.Files = {
|
|||||||
dynamic_table_age_id: "label2",
|
dynamic_table_age_id: "label2",
|
||||||
dynamic_table_date_id: "label",
|
dynamic_table_date_id: "label",
|
||||||
checkbox_id: "viewtable",
|
checkbox_id: "viewtable",
|
||||||
dataTime_input_id: "datetime",
|
dateTime_input_id: "datetime",
|
||||||
row: "label-row-0"
|
row: "label-row-0"
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -275,7 +275,7 @@ exports.Files = {
|
|||||||
dynamic_table_age_id: "label2",
|
dynamic_table_age_id: "label2",
|
||||||
dynamic_table_date_id: "label",
|
dynamic_table_date_id: "label",
|
||||||
checkbox_id: "viewtable",
|
checkbox_id: "viewtable",
|
||||||
dataTime_input_id: "datetime",
|
dateTime_input_id: "datetime",
|
||||||
row: "label-row-0"
|
row: "label-row-0"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user