mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACA-3028]Move breacrumb page to adf testing package (#5705)
* Move breacrumb page to adf testing package * no message
This commit is contained in:
@@ -23,8 +23,7 @@ import { browser } from 'protractor';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { TrashcanPage } from '../../pages/adf/trashcan.page';
|
||||
import { LoginPage, NotificationHistoryPage, StringUtil, UploadActions, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { BreadCrumbPage } from '../../pages/adf/content-services/breadcrumb/bread-crumb.page';
|
||||
import { LoginPage, NotificationHistoryPage, StringUtil, UploadActions, BrowserActions, BreadcrumbPage } from '@alfresco/adf-testing';
|
||||
|
||||
describe('Restore content directive', () => {
|
||||
|
||||
@@ -34,7 +33,7 @@ describe('Restore content directive', () => {
|
||||
const acsUser = new AcsUserModel();
|
||||
const anotherAcsUser = new AcsUserModel();
|
||||
const trashcanPage = new TrashcanPage();
|
||||
const breadCrumbPage = new BreadCrumbPage();
|
||||
const breadCrumbPage = new BreadcrumbPage();
|
||||
const notificationHistoryPage = new NotificationHistoryPage();
|
||||
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
|
||||
@@ -17,11 +17,13 @@
|
||||
|
||||
import { browser, by, element } from 'protractor';
|
||||
import {
|
||||
BreadcrumbPage,
|
||||
LoginPage,
|
||||
PaginationPage,
|
||||
UploadActions,
|
||||
StringUtil,
|
||||
ContentNodeSelectorDialogPage, ViewerPage
|
||||
ContentNodeSelectorDialogPage,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
@@ -30,7 +32,6 @@ import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { Util } from '../../util/util';
|
||||
import { BreadCrumbDropdownPage } from '../../pages/adf/content-services/breadcrumb/bread-crumb-dropdown.page';
|
||||
import { BreadCrumbPage } from '../../pages/adf/content-services/breadcrumb/bread-crumb.page';
|
||||
import { InfinitePaginationPage } from '../../pages/adf/core/infinite-pagination.page';
|
||||
import { FolderModel } from '../../models/ACS/folder.model';
|
||||
|
||||
@@ -43,7 +44,7 @@ describe('Document List Component - Actions', () => {
|
||||
const contentNodeSelector = new ContentNodeSelectorDialogPage();
|
||||
const paginationPage = new PaginationPage();
|
||||
const breadCrumbDropdownPage = new BreadCrumbDropdownPage();
|
||||
const breadCrumbPage = new BreadCrumbPage();
|
||||
const breadCrumbPage = new BreadcrumbPage();
|
||||
const viewerPage = new ViewerPage();
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'ECM',
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { element, by, ElementFinder } from 'protractor';
|
||||
import { BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class BreadCrumbPage {
|
||||
|
||||
breadCrumb: ElementFinder = element(by.css(`adf-breadcrumb nav[data-automation-id='breadcrumb']`));
|
||||
|
||||
async chooseBreadCrumb(breadCrumbItem): Promise<void> {
|
||||
const path = this.breadCrumb.element(by.css(`a[data-automation-id='breadcrumb_${breadCrumbItem}']`));
|
||||
await BrowserActions.click(path);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user