mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3299] and [ADF-3300] upgrade to Angular and Material 6 (#3579)
* upgrade to HttpClient * upgrade to Renderer2 * upgrade Document reference * remove useless test with deprecated ReflectiveInjector * upgrade to latest typescript * upgrade libs * upgrade package scripts * remove rxjs blacklists and duplicate rules * add rxjs compat to help with migration * fix breaking changes * fix breaking changes in material * fix breaking changes (material 6) * upgrade rxjs, ngx-translate and flex layout * update unit tests * restore providers * upgrade deprecated Observable.error * rebase fix first configuration problems * fix style issues commented * fix core build * fix lib template errors * move lib test execution in angular.json * ignore * karma conf files * fix import statement test * single run option * update packages reporter * restore report * increase timeout * improve karma conf test configuration * fix test issues about lint * fix test analytics * fix process service test * content service fix test * fix logout directive test * fix core test * fix build * update node-sass to latest * update angular cli dependencies * improve build script create directorites and move files only if previous command succeded * upgrade individual libs to 6.0 * remove old webpack files * revert sass change * fix type issues fix style issues * fix tslint demo shell issue * fix peerdependencies * fix test e2e BC * package upate * fix style import issue * extract-text-webpack-plugin beta * fix test dist build command * remove alpha js-api * fix tslint issue add banner tslint rule * upload service fix * change BC script * fix test dist script * increase demo shell timeout test * verbose copy * path absolute * fix script bc * fix copy part * fix path warning fix monaco editor * remove duplicate header * remove unused import * fix align and check ago tests * add missing import * fix notification button selector * [ANGULAR6] fixed core tests * fix CS test * fix cs test step 2 * increase travis_wait for dist * fix attachment PS * fix checklist test * use pdf min
This commit is contained in:
committed by
Eugenio Romano
parent
c510ec864d
commit
6b24bfb1d4
@@ -108,7 +108,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.first);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toEqual('a few seconds ago');
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
});
|
||||
|
||||
it('[C280021] Should be able to add a multiline comment on a file', () => {
|
||||
@@ -123,7 +123,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.multiline);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toEqual('a few seconds ago');
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
|
||||
commentsPage.addComment(comments.second);
|
||||
commentsPage.checkUserIconIsDisplayed(0);
|
||||
@@ -131,7 +131,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (2)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.second);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toEqual('a few seconds ago');
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
});
|
||||
|
||||
it('[C280022] Should not be able to add an HTML or other code input into the comment input filed', () => {
|
||||
@@ -146,6 +146,6 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual('First name: Last name:');
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toEqual('a few seconds ago');
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
});
|
||||
});
|
||||
|
@@ -194,7 +194,7 @@ describe('Document List Component', () => {
|
||||
loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
contentServicesPage.goToDocumentList();
|
||||
let dateValue = contentServicesPage.getColumnValueForRow(timeAgoFileModel.name, 'Created');
|
||||
expect(dateValue).toBe('a few seconds ago');
|
||||
expect(dateValue).toContain('ago');
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -614,7 +614,6 @@ describe('Document List Component', () => {
|
||||
});
|
||||
|
||||
it('[C280069] - Gallery Card show details - attributes', () => {
|
||||
let timeMessage = '';
|
||||
contentServicesPage.checkDocumentCardPropertyIsShowed(folderName, cardProperties.DISPLAY_NAME);
|
||||
contentServicesPage.checkDocumentCardPropertyIsShowed(folderName, cardProperties.SIZE);
|
||||
contentServicesPage.checkDocumentCardPropertyIsShowed(folderName, cardProperties.CREATED_BY);
|
||||
@@ -622,26 +621,26 @@ describe('Document List Component', () => {
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(folderName, cardProperties.DISPLAY_NAME)).toBe(folderName);
|
||||
expect(contentServicesPage.getAttributeValueForElement(folderName, cardProperties.CREATED_BY)).toBe(`${funnyUser.entry.firstName} ${funnyUser.entry.lastName}`);
|
||||
timeMessage = moment(folderNode.entry.createdAt).fromNow();
|
||||
expect(contentServicesPage.getAttributeValueForElement(folderName, cardProperties.CREATED)).toBe(timeMessage);
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(folderName, cardProperties.CREATED)).toContain('ago');
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(pdfFile.name, cardProperties.DISPLAY_NAME)).toBe(pdfFile.name);
|
||||
expect(contentServicesPage.getAttributeValueForElement(pdfFile.name, cardProperties.SIZE)).toBe(`702.76 KB`);
|
||||
expect(contentServicesPage.getAttributeValueForElement(pdfFile.name, cardProperties.CREATED_BY)).toBe(`${funnyUser.entry.firstName} ${funnyUser.entry.lastName}`);
|
||||
timeMessage = moment(filePdfNode.entry.createdAt).fromNow();
|
||||
expect(contentServicesPage.getAttributeValueForElement(pdfFile.name, cardProperties.CREATED)).toBe(timeMessage);
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(pdfFile.name, cardProperties.CREATED)).toContain('ago');
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(docxFile.name, cardProperties.DISPLAY_NAME)).toBe(docxFile.name);
|
||||
expect(contentServicesPage.getAttributeValueForElement(docxFile.name, cardProperties.SIZE)).toBe(`770.35 KB`);
|
||||
expect(contentServicesPage.getAttributeValueForElement(docxFile.name, cardProperties.CREATED_BY)).toBe(`${funnyUser.entry.firstName} ${funnyUser.entry.lastName}`);
|
||||
timeMessage = moment(fileDocxNode.entry.createdAt).fromNow();
|
||||
expect(contentServicesPage.getAttributeValueForElement(docxFile.name, cardProperties.CREATED)).toBe(timeMessage);
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(docxFile.name, cardProperties.CREATED)).toContain('ago');
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.DISPLAY_NAME)).toBe(testFile.name);
|
||||
expect(contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.SIZE)).toBe(`14 Bytes`);
|
||||
expect(contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.CREATED_BY)).toBe(`${funnyUser.entry.firstName} ${funnyUser.entry.lastName}`);
|
||||
timeMessage = moment(fileTestNode.entry.createdAt).fromNow();
|
||||
expect(contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.CREATED)).toBe(timeMessage);
|
||||
|
||||
expect(contentServicesPage.getAttributeValueForElement(testFile.name, cardProperties.CREATED)).toContain('ago');
|
||||
});
|
||||
|
||||
it('[C280129] - Gallery Card show details - subfolder gallery displayed', () => {
|
||||
|
@@ -286,8 +286,13 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
searchResultPage.deleteContent(search.no_permission.noPermFolder);
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
searchResultPage.closeActionButton();
|
||||
|
||||
searchDialog.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.no_permission.noPermFolder);
|
||||
|
||||
searchResultPage.checkNoResultMessageIsNotDisplayed();
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
});
|
||||
|
Reference in New Issue
Block a user