Unexclude due the timeout (#1805)

* change base method to wait

* fix import

* reduce log

* fix

* data placeholder

* fix

* fix

* fix

* fix style

* change visibility with common method

* fix

* use common get value method

* remove unused import

* fix a few incorrect api calls

* - use separate variables

* correctly wait for items after they have been created

* use browseraction click

* Exclude failing tests

* increase timeout and some fix

* check env before execute test

* simplify conf

* exclude

* rerun

* logs

* refactor pagination tests to use only 51 items
take out pagination tests into a separate stage

* fix check

* remove hardcoded total items. other shared files might already exist

Co-authored-by: Adina Parpalita <Adina.Parpalita@ness.com>
Co-authored-by: iuliaib <iulia.burca@ness.com>
This commit is contained in:
Eugenio Romano
2020-11-19 16:07:57 +00:00
committed by GitHub
parent 509c6b6f75
commit 8308573f3c
82 changed files with 815 additions and 750 deletions

View File

@@ -24,6 +24,7 @@
*/
import { AdminActions, LoginPage, BrowsingPage, InfoDrawer, RepoClient, EXTENSIBILITY_CONFIGS, Utils } from '@alfresco/aca-testing-shared';
import { BrowserActions } from '@alfresco/adf-testing';
describe('Extensions - Info Drawer', () => {
const username = `user-${Utils.random()}`;
@@ -90,7 +91,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284646] Add a new tab with icon and title', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
const val = await infoDrawer.getTabTitle(custom_tab.order);
@@ -100,7 +101,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284647] Remove existing tab', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isTabPresent(comments_tab.title)).toBe(false, `${comments_tab.title} tab should not be present!`);
@@ -108,7 +109,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284648] Change tab title', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isTabPresent(properties_tab.title)).toBe(true, `${properties_tab.title} tab is not present`);
@@ -117,7 +118,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284649] Tab with icon and no title', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isTabPresent(no_title_tab.title)).toBe(true, `${no_title_tab.title} tab is not present`);
@@ -126,7 +127,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284651] Insert new component in tab', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isTabDisplayed(custom_tab.title)).toBe(true, `${custom_tab.title} tab is not displayed`);
@@ -146,7 +147,7 @@ describe('Extensions - Info Drawer', () => {
it('[C284650] Remove all tabs', async () => {
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
expect(await infoDrawer.isEmpty()).toBe(true, 'Info Drawer is not empty');

View File

@@ -33,6 +33,7 @@ import {
InfoDrawer,
MetadataCard
} from '@alfresco/aca-testing-shared';
import { BrowserActions } from '@alfresco/adf-testing';
describe('Extensions - Metadata presets', () => {
const username = `user-${Utils.random()}`;
@@ -87,11 +88,11 @@ describe('Extensions - Metadata presets', () => {
await page.refresh();
await page.dataTable.selectItem(file);
await page.toolbar.viewDetailsButton.click();
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();
await infoDrawer.clickTab(properties_tab.title);
await metadataCard.expandButton.click();
await BrowserActions.click(metadataCard.expandButton);
await metadataCard.waitForFirstExpansionPanel();
done();

View File

@@ -24,6 +24,7 @@
*/
import { AdminActions, LoginPage, BrowsingPage, Viewer, RepoClient, EXTENSIBILITY_CONFIGS, FILES, Utils } from '@alfresco/aca-testing-shared';
import { BrowserActions } from '@alfresco/adf-testing';
describe('Extensions - Viewer', () => {
const username = `user-${Utils.random()}`;
@@ -105,7 +106,7 @@ describe('Extensions - Viewer', () => {
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
expect(await viewer.isCustomContentPresent()).toBe(true, 'Custom content is not present');
expect(await viewer.getComponentIdOfView()).toEqual(pdfFile.component);
await viewer.closeButton.click();
await BrowserActions.click(viewer.closeButton);
await page.dataTable.doubleClickOnRowByName(docxFile.file_name);
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');