Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eromano committed Sep 17, 2020
1 parent 56fba57 commit bcd6650
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- ./scripts/lint.sh
- ./scripts/travis/release/release-npm.sh
- ./scripts/travis/release/release-docker.sh

after_success:
- ./scripts/travis/release/release-docker.sh
- ./scripts/ci/utils/artifact-to-s3.sh -a ./dist/demo-shell -o "$S3_DBP_FOLDER/alfresco-demoshell.tar.bz2"
Expand Down
1 change: 1 addition & 0 deletions e2e/content-services/directives/delete-directive.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ describe('Delete Directive', () => {
});

describe('Handling multiselection', () => {

beforeEach(async () => {
await uploadActions.uploadFile(txtFileModel.location, txtFileModel.name, baseFolderUploaded.entry.id);
await uploadActions.uploadFile(file0BytesModel.location, file0BytesModel.name, baseFolderUploaded.entry.id);
Expand Down
8 changes: 5 additions & 3 deletions e2e/protractor.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ let specExists = function (listSpecs) {
specs();

exports.config = {
allScriptsTimeout: TIMEOUT,

allScriptsTimeout: 30000,

specs: arraySpecs,

Expand Down Expand Up @@ -154,13 +155,14 @@ exports.config = {
resources: RESOURCES
},

framework: 'jasmine2',
framework: 'jasmine',

getPageTimeout: 90000,

jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 120000,
defaultTimeoutInterval: 180000,
includeStackTrace: true,
print: () => {
},
...smartRunner.withOptionalExclusions(
Expand Down
25 changes: 19 additions & 6 deletions lib/testing/src/lib/core/pages/viewer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,32 @@ export class ViewerPage {
await this.waitTillContentLoaded();
}


async waitTillContentLoaded(): Promise<void> {
await browser.sleep(500);

try {
if (await element(by.tagName('mat-spinner')).isPresent()) {
Logger.log('wait datatable loading spinner disappear');
await BrowserVisibility.waitUntilElementIsNotPresent(element(by.tagName('mat-spinner')));
} else {
Logger.log('wait datatable loading spinner is present');
if (this.isSpinnerPresent()) {
Logger.log('wait spinner disappear');
await BrowserVisibility.waitUntilElementIsNotPresent(element(by.tagName('mat-spinner')));
} else {
try {
Logger.log('wait spinner is present');
await BrowserVisibility.waitUntilElementIsPresent(element(by.tagName('mat-spinner')));
} catch (error) {
}
}
}

private async isSpinnerPresent(): Promise<boolean> {
let isSpinnerPresent;

try {
isSpinnerPresent = await element(by.tagName('mat-spinner')).isDisplayed();
} catch (error) {
isSpinnerPresent = false;
}

return isSpinnerPresent;
}

async clearPageNumber(): Promise<void> {
Expand Down

0 comments on commit bcd6650

Please sign in to comment.