PLAYWRIGHT: fix activityFeed and DataInsight AUT playwright test (#18180)

* fix activityFeed and DataInsight AUT playwright test

* minor improvement

(cherry picked from commit af713adaa7f90a207167f060b80c3743b0869d86)
This commit is contained in:
Ashish Gupta 2024-10-09 16:51:21 +05:30
parent ef1585d764
commit e2e32d9f0c
4 changed files with 7 additions and 3 deletions

View File

@ -30,6 +30,7 @@ import {
} from '../../utils/activityFeed'; } from '../../utils/activityFeed';
import { performAdminLogin } from '../../utils/admin'; import { performAdminLogin } from '../../utils/admin';
import { import {
clickOutside,
descriptionBox, descriptionBox,
redirectToHomePage, redirectToHomePage,
removeLandingBanner, removeLandingBanner,
@ -877,6 +878,7 @@ base.describe('Activity feed with Data Consumer User', () => {
const dropdownValue = page2.getByTestId(`tag-PII.None`); const dropdownValue = page2.getByTestId(`tag-PII.None`);
await dropdownValue.hover(); await dropdownValue.hover();
await dropdownValue.click(); await dropdownValue.click();
await clickOutside(page2);
await expect(page2.getByTestId('selected-tag-PII.None')).toBeVisible(); await expect(page2.getByTestId('selected-tag-PII.None')).toBeVisible();

View File

@ -956,9 +956,9 @@ export const TaskTab = ({
{isTaskTestCaseResult ? ( {isTaskTestCaseResult ? (
<Modal <Modal
destroyOnClose destroyOnClose
maskClosable
closable={false} closable={false}
closeIcon={null} closeIcon={null}
maskClosable={false}
okButtonProps={{ okButtonProps={{
loading: isActionLoading, loading: isActionLoading,
}} }}
@ -1019,9 +1019,9 @@ export const TaskTab = ({
) : ( ) : (
<Modal <Modal
destroyOnClose destroyOnClose
maskClosable
closable={false} closable={false}
closeIcon={null} closeIcon={null}
maskClosable={false}
open={showEditTaskModel} open={showEditTaskModel}
title={`${t('label.edit-entity', { title={`${t('label.edit-entity', {
entity: t('label.task-lowercase'), entity: t('label.task-lowercase'),

View File

@ -234,6 +234,7 @@ const KPIList = () => {
<Col span={24}> <Col span={24}>
<Table <Table
bordered bordered
className="kpi-table"
columns={columns} columns={columns}
data-testid="kpi-table" data-testid="kpi-table"
dataSource={kpiList} dataSource={kpiList}

View File

@ -827,7 +827,8 @@ a[href].link-text-grey,
.activity-feed-editor-drawer, .activity-feed-editor-drawer,
.policies-list-table, .policies-list-table,
.roles-list-table, .roles-list-table,
.list-table { .list-table,
.kpi-table {
margin-right: 64px; margin-right: 64px;
} }
} }