WIP: [ACA-823] automate undo copy (#1057)

[ACA-823] automate undo copy
This commit is contained in:
Martin Muller
2019-04-09 13:30:30 +01:00
committed by GitHub
parent 839c9d0dbb
commit f051f01279
3 changed files with 467 additions and 507 deletions

View File

@@ -230,9 +230,9 @@ export class DataTable extends Component {
}
// Navigation/selection methods
async doubleClickOnRowByName(name: string) {
async doubleClickOnRowByName(name: string, location: string = '') {
try {
const item = this.getRowFirstCell(name);
const item = this.getRowFirstCell(name, location);
await Utils.waitUntilElementClickable(item);
await browser.actions().mouseMove(item).perform();
await browser.actions().click().click().perform();

File diff suppressed because it is too large Load Diff

View File

@@ -128,7 +128,8 @@ describe('Single click on item name', () => {
expect(await dataTable.hasLinkOnName(siteName)).toBe(true, 'Link on site name is missing');
});
it('Navigate inside the library when clicking the hyperlink - [C284902]', async () => {
// TODO: enable this when ACA-2330 is done
xit('Navigate inside the library when clicking the hyperlink - [C284902]', async () => {
await dataTable.clickNameLink(siteName);
expect(await breadcrumb.getCurrentItemName()).toBe(siteName);
@@ -146,7 +147,8 @@ describe('Single click on item name', () => {
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
});
it('File preview opens when clicking the hyperlink - [C284906]', async () => {
// TODO: enable this when ACA-2330 is done
xit('File preview opens when clicking the hyperlink - [C284906]', async () => {
await dataTable.clickNameLink(file1);
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
@@ -165,7 +167,8 @@ describe('Single click on item name', () => {
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
});
it('File preview opens when clicking the hyperlink - [C284908]', async () => {
// TODO: enable this when ACA-2330 is done
xit('File preview opens when clicking the hyperlink - [C284908]', async () => {
await dataTable.clickNameLink(file1);
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
@@ -184,7 +187,8 @@ describe('Single click on item name', () => {
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
});
it('File preview opens when clicking the hyperlink - [C284910]', async () => {
// TODO: enable this when ACA-2330 is done
xit('File preview opens when clicking the hyperlink - [C284910]', async () => {
await dataTable.clickNameLink(file1);
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
@@ -192,7 +196,8 @@ describe('Single click on item name', () => {
await Utils.pressEscape();
});
it('Navigate inside the folder when clicking the hyperlink - [C284911]', async () => {
// TODO: enable this when ACA-2330 is done
xit('Navigate inside the folder when clicking the hyperlink - [C284911]', async () => {
await dataTable.clickNameLink(folder1);
expect(await breadcrumb.getCurrentItemName()).toBe(folder1);