mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5405] Resolved process-filters action buttons disabling/enabling… (#7140)
* [ADF-5405] Resolved process-filters action buttons disabling/enabling issue * Changes done as per comments on PR * Added unit tests * Changes done as per the comments on PR * Fixed the failing e2es * Fixed linting * REsolved build failure * Resolved failing e2e tests * Resolved lint errors
This commit is contained in:
@@ -36,7 +36,7 @@ export class EditProcessFilterDialogPage {
|
||||
|
||||
async checkSaveButtonIsEnabled(): Promise<boolean> {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.componentElement.$(this.saveButtonLocator));
|
||||
return this.componentElement.element(this.saveButtonLocator).isEnabled();
|
||||
return this.componentElement.$(this.saveButtonLocator).isEnabled();
|
||||
}
|
||||
|
||||
async clickOnCancelButton(): Promise<void> {
|
||||
|
@@ -14,7 +14,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { browser, $$, $ } from 'protractor';
|
||||
import { browser, $$, $, by, element } from 'protractor';
|
||||
import { EditProcessFilterDialogPage } from './dialog/edit-process-filter-dialog.page';
|
||||
import { BrowserVisibility } from '../../core/utils/browser-visibility';
|
||||
import { BrowserActions } from '../../core/utils/browser-actions';
|
||||
@@ -268,4 +268,9 @@ export class EditProcessFilterCloudComponentPage {
|
||||
if (props.suspendedDateRange) { await this.setSuspendedDateRangeDropDown(props.suspendedDateRange); }
|
||||
await this.closeFilter();
|
||||
}
|
||||
|
||||
async isCustomFilterNameDisplayed(name: string): Promise<boolean> {
|
||||
const title = element(by.cssContainingText(`[id='adf-edit-process-filter-title-id']`, name));
|
||||
return BrowserVisibility.waitUntilElementIsVisible(title);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user