[e2e] new reporter (#906)

* try new reporter

* run specific suite for testing purposes

* change folder output for report

* more report settings

* remove fdescribe

* remove package and update package-lock

* remove disabled tests not needed by the new reporter

* try to identify cause of travis failure

* run only specific tests for investigation purpose

* remove sleep and increase retry delay

* try a different fix

* revert to previous fix

* try different expects

* call different js-api method

* remove parameter not needed anymore
This commit is contained in:
Adina Parpalita
2019-01-29 14:10:02 +02:00
committed by Suzana Dirla
parent 7701dbce93
commit 42b5f4b749
27 changed files with 65 additions and 99 deletions

View File

@@ -98,8 +98,6 @@ describe('Context menu actions - multiple selection : ', () => {
done();
});
xit('');
describe('Generic tests', () => {
beforeEach(async (done) => {
await Utils.pressEscape();

View File

@@ -102,8 +102,6 @@ describe('Context menu actions - single selection : ', () => {
done();
});
xit('');
describe('Generic tests', () => {
beforeEach(async (done) => {
await Utils.pressEscape();

View File

@@ -555,6 +555,4 @@ describe('Copy', () => {
});
});
xit('');
});

View File

@@ -263,5 +263,4 @@ describe('Create folder', () => {
});
});
xit('');
});

View File

@@ -49,8 +49,6 @@ describe('Delete and undo delete', () => {
done();
});
xit('');
describe('on Personal Files', () => {
const file1 = `file1-${Utils.random()}.txt`;
const file2 = `file2-${Utils.random()}.txt`;

View File

@@ -89,8 +89,6 @@ describe('Mark items as favorites', () => {
done();
});
xit('');
describe('on Personal Files', () => {
afterAll(async (done) => {
await apis.user.favorites.addFavoritesByIds('file', [ fileFavUIId, fileFav1Id, fileFav2Id, fileFav3Id, fileFav4Id ]);

View File

@@ -52,8 +52,6 @@ describe('Restore from Trash', () => {
done();
});
xit('');
describe('successful restore', () => {
const file = `file-${Utils.random()}.txt`; let fileId;
const folder = `folder-${Utils.random()}`; let folderId;

View File

@@ -1011,6 +1011,4 @@ describe('Share a file', () => {
});
});
xit('');
});

View File

@@ -103,8 +103,6 @@ describe('Granular permissions available actions : ', () => {
done();
});
xit('');
describe('toolbar displays correct actions when selecting multiple files with different granular permissions', () => {
beforeEach(async (done) => {
await Utils.pressEscape();

View File

@@ -111,8 +111,6 @@ describe('Toolbar actions - multiple selection : ', () => {
done();
});
xit('');
describe('on Personal Files', () => {
beforeEach(async (done) => {
await Utils.pressEscape();

View File

@@ -101,8 +101,6 @@ describe('Toolbar actions - single selection : ', () => {
done();
});
xit('');
describe('on Personal Files', () => {
beforeEach(async (done) => {
await Utils.pressEscape();

View File

@@ -795,5 +795,4 @@ describe('Unshare a file', () => {
});
});
xit('');
});

View File

@@ -37,7 +37,6 @@ describe('General', () => {
const { nodes: nodesApi, authentication: authApi } = adminApi;
const folder = `folder-${Utils.random()}`;
let folderId;
xit('');
describe('on session expire', () => {
beforeAll(async (done) => {

View File

@@ -37,8 +37,6 @@ describe('Page titles', () => {
const file = `file-${Utils.random()}.txt`; let fileId;
const { searchInput } = page.header;
xit('');
describe('on Login / Logout pages', () => {
it('on Login page - [C217155]', async () => {
await loginPage.load();

View File

@@ -74,8 +74,6 @@ describe('Login', () => {
done();
});
xit('');
describe('general tests', () => {
beforeEach(async (done) => {
await loginPage.load();

View File

@@ -157,6 +157,4 @@ describe('Extensions - Info Drawer', () => {
});
});
xit('');
});

View File

@@ -103,8 +103,6 @@ describe('Extensions - Viewer', () => {
done();
});
xit('');
describe('content', () => {
it('Insert new component in a content viewer - [C284659]', async () => {
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);

View File

@@ -96,8 +96,6 @@ describe('File Libraries', () => {
done();
});
xit('');
describe('My Libraries', () => {
beforeEach(async (done) => {
await page.goToMyLibrariesAndWait();

View File

@@ -41,8 +41,6 @@ describe('Special permissions', () => {
const page = new BrowsingPage();
const { dataTable } = page;
xit('');
beforeAll(async (done) => {
await apis.admin.people.createUser({ username });
done();

View File

@@ -65,8 +65,6 @@ describe('Personal Files', () => {
done();
});
xit('');
describe(`Admin user's personal files`, () => {
beforeAll(async (done) => {
await loginPage.loginWithAdmin();

View File

@@ -85,8 +85,6 @@ describe('File / folder tooltips', () => {
done();
});
xit('');
describe('on Personal Files', () => {
beforeAll(async (done) => {
await page.clickPersonalFilesAndWait();

View File

@@ -87,8 +87,6 @@ describe('Trash', () => {
done();
});
xit('');
describe('as admin', () => {
beforeAll(async (done) => {
await loginPage.loginWithAdmin();

View File

@@ -58,8 +58,6 @@ describe('Viewer actions', () => {
done();
});
xit('');
describe('on Personal Files', () => {
const parent = `parentPF-${Utils.random()}`; let parentId;
const destination = `destPF-${Utils.random()}`; let destinationId;

View File

@@ -96,7 +96,7 @@ export class FavoritesApi extends RepoApi {
let isFavorite;
try {
const favorite = async () => {
isFavorite = JSON.stringify((await this.getFavorites()).list.entries).includes(nodeId);
isFavorite = await this.isFavorite(nodeId);
if ( isFavorite !== data.expect ) {
return Promise.reject(isFavorite);
} else {
@@ -114,7 +114,7 @@ export class FavoritesApi extends RepoApi {
async removeFavoriteById(nodeId: string) {
await this.apiAuth();
try {
return await this.favoritesApi.deleteSiteFavorite('-me-', nodeId);
return await this.favoritesApi.deleteFavorite('-me-', nodeId);
} catch (error) {
// console.log('--- remove favorite by id catch ');
}