[ACS-6791] Restore&fix excluded tests (#3649)

* Removed tests from excluded, small fixes
This commit is contained in:
Katarzyna Kita 2024-02-21 13:57:06 +01:00 committed by GitHub
parent 930e4b1f3c
commit 799ff8b74b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 10 deletions

View File

@ -1,4 +1 @@
{
"C299195" : "https://alfresco.atlassian.net/browse/ACS-6688",
"C299189" : "https://alfresco.atlassian.net/browse/ACS-6688"
}
{}

View File

@ -1,3 +1 @@
{
"C286326": "https://alfresco.atlassian.net/browse/ACS-6688"
}
{}

View File

@ -224,6 +224,7 @@ test.describe('Library actions ', () => {
await myLibrariesPage.reload({ waitUntil: domContentLoadedString });
await expect(libraryTable.getRowByName(user2Library2)).toBeVisible();
await libraryTable.getRowByName(user2Library2).click();
await myLibrariesPage.page.waitForTimeout(1000);
await myLibrariesHeader.clickMoreActions();
expect(await libraryMenu.isMenuItemVisible(removeFavoriteButton)).toBe(true);
await libraryMenu.clickMenuItem(removeFavoriteButton);
@ -416,6 +417,7 @@ test.describe('Library actions ', () => {
await expect(libraryTable.getRowByName(user2Library4)).toBeVisible();
await searchPage.reload({ waitUntil: domContentLoadedString });
await libraryTable.getRowByName(user2Library4).click();
await searchPage.page.waitForTimeout(1000);
await searchHeader.clickMoreActions();
await libraryMenu.clickMenuItem(removeFavoriteButton);
await searchHeader.clickMoreActions();

View File

@ -40,7 +40,7 @@ export class AdfInfoDrawerComponent extends BaseComponent {
public propertiesTab = this.page.getByRole('tab', { name: 'Properties' });
public commentsTab = this.page.getByRole('tab', { name: 'Comments' });
public infoDrawerTabs = this.getChild('.adf-info-drawer-tab');
public commentInputField = this.getChild('mat-form-field');
public commentInputField = this.page.locator('#comment-input');
public commentsHeader = this.getChild('#comment-header');
public addCommentButton = this.getChild('[data-automation-id="comments-input-add"]');
public commentsList = this.getChild('.adf-comment-list-item');
@ -79,8 +79,7 @@ export class AdfInfoDrawerComponent extends BaseComponent {
}
async addCommentToNode(commentText: string): Promise<void> {
await this.commentInputField.click();
await this.page.keyboard.type(commentText);
await this.commentInputField.fill(commentText);
await this.addCommentButton.click();
}