[ADF-3931]Fix share and lock files automated tests (#4195)

* Fix share-files tests

* Moved a locator to a page object

* Fix lock-file tests

* no message

* Fix lock-file

* Excluded viewer tests

* Fix unshare tests.
This commit is contained in:
cristinaj
2019-01-23 22:42:58 +02:00
committed by Eugenio Romano
parent 54a1a90083
commit e63aa9a684
7 changed files with 97 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ describe('Unshare file', () => {
const loginPage = new LoginPage();
const contentServicesPage = new ContentServicesPage();
const contentListPage = new ContentListPage();
const contentListPage = contentServicesPage.getUploadAreaDocumentList();
let navBar = new NavigationBarPage();
const errorPage = new ErrorPage();
const shareDialog = new ShareDialog();
@@ -118,7 +118,7 @@ describe('Unshare file', () => {
});
it('[C286550] Should display unshare confirmation dialog', () => {
contentListPage.clickRowToSelect(pngFileModel.name);
contentListPage.clickRowToSelectWithRoot(pngFileModel.name);
contentServicesPage.clickShareButton();
shareDialog.checkDialogIsDisplayed();
shareDialog.clickUnShareFile();
@@ -126,7 +126,7 @@ describe('Unshare file', () => {
});
it('[C286551] Should be able to cancel unshare action', () => {
contentListPage.clickRowToSelect(pngFileModel.name);
contentListPage.clickRowToSelectWithRoot(pngFileModel.name);
contentServicesPage.clickShareButton();
shareDialog.checkDialogIsDisplayed();
shareDialog.clickUnShareFile();
@@ -136,7 +136,7 @@ describe('Unshare file', () => {
});
it('[C286552] Should be able to confirm unshare action', async () => {
contentListPage.clickRowToSelect(pngFileModel.name);
contentListPage.clickRowToSelectWithRoot(pngFileModel.name);
contentServicesPage.clickShareButton();
shareDialog.checkDialogIsDisplayed();
shareDialog.clickUnShareFile();
@@ -146,7 +146,7 @@ describe('Unshare file', () => {
});
it('[C280556] Should redirect to 404 when trying to access an unshared file', async () => {
contentListPage.clickRowToSelect(pngFileModel.name);
contentListPage.clickRowToSelectWithRoot(pngFileModel.name);
contentServicesPage.clickShareButton();
shareDialog.checkDialogIsDisplayed();
let sharedLink = await shareDialog.getShareLink();