Skip to content

Commit

Permalink
fix failing playwright test and minor css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shrushti2000 committed Dec 18, 2024
1 parent 6575f42 commit 323ccdb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ entities.forEach((EntityClass) => {
});

test(`Announcement create & delete`, async ({ page }) => {
await entity.announcement(page, false);
const isService = entity.type.includes('Service') ? false : true;
await entity.announcement(page, isService);
});

test(`Inactive Announcement create & delete`, async ({ page }) => {
await entity.inactiveAnnouncement(page, false);
const isService = entity.type.includes('Service') ? false : true;
await entity.inactiveAnnouncement(page, isService);
});

// Create custom property only for supported entities
Expand Down
14 changes: 12 additions & 2 deletions openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,12 @@ export const createAnnouncement = async (
isForActivityFeedTab: boolean
) => {
if (isForActivityFeedTab) {
await page.getByText('Activity Feeds & Tasks').click(); // For Activity Feed
const activityFeedText = (await page
.getByText('Activity Feeds & Tasks')
.isVisible())
? 'Activity Feeds & Tasks'
: 'Activity Feeds';
await page.getByText(activityFeedText).click(); // For Activity Feed
await page.getByTestId('announcement-sub-tab').click();
} else {
await page.getByText('Announcements').click(); // For Service page
Expand Down Expand Up @@ -893,7 +898,12 @@ export const createInactiveAnnouncement = async (
isForActivityFeedTab: boolean
) => {
if (isForActivityFeedTab) {
await page.getByText('Activity Feeds & Tasks').click(); // For Activity Feed
const activityFeedText = (await page
.getByText('Activity Feeds & Tasks')
.isVisible())
? 'Activity Feeds & Tasks'
: 'Activity Feeds';
await page.getByText(activityFeedText).click(); // For Activity Feed
await page.getByTestId('announcement-sub-tab').click();
} else {
await page.getByText('Announcements').click(); // For Service page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
}
.ant-avatar-group {
margin-bottom: 8px !important;
z-index: 9;
margin-right: 5px;
}
.assignee-item {
z-index: 9;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.ant-avatar-group {
z-index: 10;
margin-bottom: 5px;
margin-right: 5px;
}
}

Expand Down

0 comments on commit 323ccdb

Please sign in to comment.