Skip to content

Commit

Permalink
add tests for Move content (Alfresco#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
adinapitul authored and dhrn committed Apr 30, 2019
1 parent 2f40d33 commit 004ec1b
Show file tree
Hide file tree
Showing 3 changed files with 717 additions and 5 deletions.
4 changes: 2 additions & 2 deletions e2e/components/data-table/data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ export class DataTable extends Component {
return await this.getRowByName(name).element(by.css(DataTable.selectors.libraryRole)).getText();
}

async isItemPresent(name: string) {
return await this.getRowByName(name).isPresent();
async isItemPresent(name: string, location? : string) {
return await this.getRowByName(name, location).isPresent();
}

async getEntireDataTableText() {
Expand Down
4 changes: 1 addition & 3 deletions e2e/suites/actions/copy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { CopyMoveDialog } from './../../components/dialog/copy-move-dialog';
import { RepoClient } from '../../utilities/repo-client/repo-client';
import { Utils } from '../../utilities/utils';

describe('Copy', () => {
describe('Copy content', () => {
const username = `user-${Utils.random()}`;

const source = `source-${Utils.random()}`; let sourceId;
Expand Down Expand Up @@ -336,8 +336,6 @@ describe('Copy', () => {
expect(msg).toContain('Undo');

await copyDialog.waitForDialogToClose();
expect(await dataTable.isItemPresent(file1)).toBe(true, `${file1} not present in source folder`);

await page.goToMyLibraries();
await dataTable.doubleClickOnRowByName(siteName);
await dataTable.doubleClickOnRowByName(folderSiteRF);
Expand Down
Loading

0 comments on commit 004ec1b

Please sign in to comment.