mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-5191] move reusable actions to testing package (#5842)
* [ADF-5191] move reusable actions to testing package * * tenant added * * improved logic * fix circular deps error and warns * fix unit test
This commit is contained in:
@@ -15,11 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ApiService, DataTableComponentPage, LoginSSOPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, DataTableComponentPage, LoginSSOPage, UserModel, UsersActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { DataTablePage } from '../../pages/adf/demo-shell/data-table.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Datatable component - selection', () => {
|
||||
|
||||
|
||||
@@ -15,12 +15,18 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ApiService, DropActions, LoginSSOPage, NotificationHistoryPage, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
DropActions,
|
||||
LoginSSOPage,
|
||||
NotificationHistoryPage,
|
||||
UserModel,
|
||||
UsersActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { DataTablePage } from '../../pages/adf/demo-shell/data-table.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Datatable component', () => {
|
||||
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginSSOPage, ErrorPage, BrowserActions, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, BrowserActions, ErrorPage, LoginSSOPage, UserModel, UsersActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Error Component', () => {
|
||||
|
||||
|
||||
@@ -14,10 +14,9 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { ApiService, HeaderPage, LoginSSOPage, SettingsPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, HeaderPage, LoginSSOPage, SettingsPage, UserModel, UsersActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Header Component', () => {
|
||||
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ApiService, LoginSSOPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, UserModel, UsersActions } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { IconsPage } from '../pages/adf/icons.page';
|
||||
import { browser } from 'protractor';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Universal Icon component', () => {
|
||||
|
||||
|
||||
@@ -15,13 +15,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { StringUtil, LocalStorageUtil, LoginSSOPage, UploadActions, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LocalStorageUtil,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { FolderModel } from '../models/ACS/folder.model';
|
||||
import { ContentServicesPage } from '../pages/adf/content-services.page';
|
||||
import { InfinitePaginationPage } from '../pages/adf/core/infinite-pagination.page';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Enable infinite scrolling', () => {
|
||||
|
||||
|
||||
@@ -21,14 +21,14 @@ import {
|
||||
ErrorPage,
|
||||
LocalStorageUtil,
|
||||
UserInfoPage,
|
||||
UserModel
|
||||
UserModel,
|
||||
UsersActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { ProcessServicesPage } from '../../pages/adf/process-services/process-services.page';
|
||||
import { LoginPage } from '../../pages/adf/demo-shell/login.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Login component', () => {
|
||||
|
||||
|
||||
@@ -17,13 +17,19 @@
|
||||
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { SettingsPage, UploadActions, StringUtil, ApiService, LocalStorageUtil } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LocalStorageUtil,
|
||||
SettingsPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UsersActions
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { ProcessServicesPage } from '../../pages/adf/process-services/process-services.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { LogoutPage } from '../../pages/adf/demo-shell/logout.page';
|
||||
import { LoginPage } from '../../pages/adf/demo-shell/login.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Login component - Redirect', () => {
|
||||
|
||||
|
||||
@@ -15,11 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ApiService, LoginSSOPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, UserModel, UsersActions } from '@alfresco/adf-testing';
|
||||
import { NotificationDemoPage } from '../pages/adf/demo-shell/notification.page';
|
||||
import { browser } from 'protractor';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Notifications Component', () => {
|
||||
|
||||
|
||||
@@ -16,20 +16,20 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
ApiService,
|
||||
ArrayUtil,
|
||||
StringUtil,
|
||||
LoginSSOPage,
|
||||
PaginationPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
ViewerPage,
|
||||
ApiService,
|
||||
UserModel
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { FileModel } from '../models/ACS/file.model';
|
||||
import { FolderModel } from '../models/ACS/folder.model';
|
||||
import { ContentServicesPage } from '../pages/adf/content-services.page';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('Pagination - returns to previous page when current is empty', () => {
|
||||
|
||||
|
||||
@@ -15,14 +15,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
SettingsPage,
|
||||
UserInfoPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, SettingsPage, UserInfoPage, UsersActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
|
||||
describe('User Info - SSO', () => {
|
||||
|
||||
|
||||
@@ -16,9 +16,8 @@
|
||||
*/
|
||||
|
||||
import { PeopleApi } from '@alfresco/js-api';
|
||||
import { ApiService, LocalStorageUtil, LoginSSOPage, UserInfoPage } from '@alfresco/adf-testing';
|
||||
import { ApiService, LocalStorageUtil, LoginSSOPage, UserInfoPage, UsersActions } from '@alfresco/adf-testing';
|
||||
import { browser } from 'protractor';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { FileModel } from '../models/ACS/file.model';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import * as path from 'path';
|
||||
|
||||
@@ -16,12 +16,19 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { NavigationBarPage } from '../../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,13 +16,20 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FileModel } from '../../../models/ACS/file.model';
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { NavigationBarPage } from '../../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,11 +16,18 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { ApiService, LoginSSOPage, StringUtil, UploadActions, ViewerPage, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,11 +16,18 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { ApiService, LoginSSOPage, StringUtil, UploadActions, ViewerPage, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -15,12 +15,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { browser } from 'protractor';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,11 +16,18 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,12 +16,19 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
import { FolderModel } from '../../../models/ACS/folder.model';
|
||||
import { NavigationBarPage } from '../../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../../actions/users.actions';
|
||||
import CONSTANTS = require('../../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,12 +16,19 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, StringUtil, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
|
||||
describe('Info Drawer', () => {
|
||||
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { ApiService, LoginSSOPage, UploadActions, ViewerPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, UploadActions, UserModel, UsersActions, ViewerPage } from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Content Services Viewer', () => {
|
||||
const acsUser = new UserModel();
|
||||
|
||||
@@ -16,11 +16,10 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { ApiService, LoginSSOPage, UploadActions, ViewerPage, UserModel } from '@alfresco/adf-testing';
|
||||
import { ApiService, LoginSSOPage, UploadActions, UserModel, UsersActions, ViewerPage } from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
@@ -16,11 +16,18 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginSSOPage, UploadActions, DataTableComponentPage, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
DataTableComponentPage,
|
||||
LoginSSOPage,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
|
||||
describe('Viewer - properties', () => {
|
||||
|
||||
|
||||
@@ -15,14 +15,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginSSOPage, UploadActions, StringUtil, BrowserActions, ViewerPage, ApiService, UserModel } from '@alfresco/adf-testing';
|
||||
import {
|
||||
ApiService,
|
||||
BrowserActions,
|
||||
LoginSSOPage,
|
||||
StringUtil,
|
||||
UploadActions,
|
||||
UserModel,
|
||||
UsersActions,
|
||||
ViewerPage
|
||||
} from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../../pages/adf/navigation-bar.page';
|
||||
import { ContentServicesPage } from '../../pages/adf/content-services.page';
|
||||
import { ShareDialogPage } from '../../pages/adf/dialog/share-dialog.page';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
import { FileModel } from '../../models/ACS/file.model';
|
||||
import { browser } from 'protractor';
|
||||
import { UsersActions } from '../../actions/users.actions';
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
|
||||
describe('Viewer', () => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user