Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 34 additions & 32 deletions .github/playwright/impact-map.generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -4438,6 +4438,7 @@
"playwright/e2e/Features/TagsSuggestion.spec.ts",
"playwright/e2e/Features/Tasks.spec.ts",
"playwright/e2e/Features/Tasks/TaskAssigneeManagement.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Pages/TasksUIFlow.spec.ts"
]
},
Expand Down Expand Up @@ -4550,7 +4551,8 @@
"openmetadata-ui/src/main/resources/ui/playwright/utils/waitHelpers.ts"
],
"specs": [
"playwright/e2e/Features/AppMode/AppModeSettings.spec.ts"
"playwright/e2e/Features/AppMode/AppModeSettings.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts"
]
},
{
Expand Down Expand Up @@ -4595,7 +4597,9 @@
"playwright/e2e/Features/ActivityAPI.spec.ts",
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/ActivityFeedTabBadge.spec.ts",
"playwright/e2e/Features/ContextCenterArticles.spec.ts"
"playwright/e2e/Features/ContextCenterArticles.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand All @@ -4605,7 +4609,9 @@
"specs": [
"playwright/e2e/Features/ActivityAPI.spec.ts",
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts"
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand All @@ -4617,6 +4623,14 @@
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedEditor/ActivityFeedEditorNew.tsx"
],
"specs": [
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedEditor/SendButton.tsx"
Expand All @@ -4625,7 +4639,9 @@
"playwright/e2e/Features/ActivityAPI.spec.ts",
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/ContextCenterArticles.spec.ts",
"playwright/e2e/Features/ContextCenterPermission.spec.ts"
"playwright/e2e/Features/ContextCenterPermission.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand Down Expand Up @@ -4712,7 +4728,9 @@
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/ContextCenterArticles.spec.ts",
"playwright/e2e/Features/ContextCenterPermission.spec.ts",
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts"
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand Down Expand Up @@ -4750,7 +4768,9 @@
"specs": [
"playwright/e2e/Features/ActivityAPI.spec.ts",
"playwright/e2e/Features/ContextCenterArticles.spec.ts",
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts"
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand All @@ -4764,7 +4784,6 @@
"playwright/e2e/Features/Tasks/ActivityFeed.spec.ts",
"playwright/e2e/Features/Tasks/DomainFiltering.spec.ts",
"playwright/e2e/Features/Tasks/TaskAssigneeManagement.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Features/Tasks/TaskCreation.spec.ts",
"playwright/e2e/Features/Tasks/TaskCustomFormWorkflow.spec.ts",
"playwright/e2e/Features/Tasks/TaskDashboardEntity.spec.ts",
Expand Down Expand Up @@ -6186,9 +6205,7 @@
"openmetadata-ui/src/main/resources/ui/src/components/Entity/EntityExportModalProvider/EntityExportModal.component.tsx"
],
"specs": [
"playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts",
"playwright/e2e/Pages/TestSuite.spec.ts",
"playwright/e2e/Pages/TestSuiteDetailsPage.spec.ts"
"playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts"
]
},
{
Expand Down Expand Up @@ -6368,6 +6385,7 @@
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Table.spec.ts",
"playwright/e2e/Features/Tasks/TaskAssigneeManagement.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Features/Tasks/TaskCustomFormWorkflow.spec.ts",
"playwright/e2e/Features/Topic.spec.ts",
"playwright/e2e/Flow/SchemaTable.spec.ts",
Expand Down Expand Up @@ -8999,6 +9017,7 @@
"specs": [
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/DataQuality/TestCaseSoftDeleteRestore.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Flow/AddRoleAndAssignToUser.spec.ts",
"playwright/e2e/Flow/NestedChildrenUpdates.spec.ts",
"playwright/e2e/Flow/PersonaFlow.spec.ts",
Expand All @@ -9022,6 +9041,7 @@
"specs": [
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/DataQuality/TestCaseSoftDeleteRestore.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Flow/AddRoleAndAssignToUser.spec.ts",
"playwright/e2e/Flow/NestedChildrenUpdates.spec.ts",
"playwright/e2e/Flow/PersonaFlow.spec.ts",
Expand All @@ -9045,6 +9065,7 @@
"specs": [
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/DataQuality/TestCaseSoftDeleteRestore.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts",
"playwright/e2e/Flow/AddRoleAndAssignToUser.spec.ts",
"playwright/e2e/Flow/NestedChildrenUpdates.spec.ts",
"playwright/e2e/Flow/PersonaFlow.spec.ts",
Expand Down Expand Up @@ -9318,7 +9339,9 @@
"playwright/e2e/Features/ActivityAPI.spec.ts",
"playwright/e2e/Features/ActivityFeed.spec.ts",
"playwright/e2e/Features/ContextCenterArticles.spec.ts",
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts"
"playwright/e2e/Features/FeedEditorDuplicateId.spec.ts",
"playwright/e2e/Features/IncidentManager.spec.ts",
"playwright/e2e/Features/Tasks/TaskComments.spec.ts"
]
},
{
Expand Down Expand Up @@ -10622,16 +10645,6 @@
"playwright/e2e/Features/Table.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/pages/AddCustomMetricPage/AddCustomMetricPage.tsx"
],
"specs": [
"playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts",
"playwright/e2e/Pages/TestSuite.spec.ts",
"playwright/e2e/Pages/TestSuiteDetailsPage.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/pages/AddQueryPage/AddQueryPage.component.tsx"
Expand Down Expand Up @@ -10977,7 +10990,6 @@
"openmetadata-ui/src/main/resources/ui/src/pages/LoginPage/SignInPage.tsx"
],
"specs": [
"playwright/e2e/Flow/AddRoleAndAssignToUser.spec.ts",
"playwright/e2e/Pages/Login.spec.ts"
]
},
Expand Down Expand Up @@ -11099,16 +11111,6 @@
"playwright/e2e/Pages/ProfilerConfigurationPage.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/pages/ResetPassword/ResetPassword.component.tsx"
],
"specs": [
"playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts",
"playwright/e2e/Pages/TestSuite.spec.ts",
"playwright/e2e/Pages/TestSuiteDetailsPage.spec.ts"
]
},
{
"sources": [
"openmetadata-ui/src/main/resources/ui/src/pages/RolesPage/AddAttributeModal/AddAttributeModal.tsx"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export const renderFieldElement = (
onItemCleared,
onSearchChange,
onSelect: _onSelect,
size: _size,
selectedItems: _selectedItems,
options: _options,
items: _items,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const InputBase = ({
{...(inputProps as AriaInputProps)}
className={cx(
cx(
'tw:m-0 tw:w-full tw:bg-transparent tw:text-primary tw:outline-hidden tw:placeholder:text-sm tw:placeholder:text-tertiary tw:autofill:rounded-lg tw:autofill:text-primary',
'tw:m-0 tw:w-full tw:bg-transparent tw:text-primary tw:outline-hidden tw:placeholder:text-sm tw:placeholder:text-placeholder tw:autofill:rounded-lg tw:autofill:text-primary',
fontSizeClass[fontSize]
),
isDisabled && 'tw:cursor-not-allowed tw:text-disabled',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const NativeSelect = ({
// Border drawn with outline, not a ring (WebKit does not pixel-snap box-shadow,
// so rings thin/vanish in Safari when zoomed out). `outline-hidden` is gone —
// the outline IS the border and focus indicator, as in input.tsx.
'tw:appearance-none tw:rounded-lg tw:bg-primary tw:px-3.5 tw:py-2.5 tw:text-md tw:font-medium tw:text-primary tw:shadow-xs tw:outline-1 tw:-outline-offset-1 tw:outline-primary tw:transition tw:duration-100 tw:ease-linear tw:placeholder:text-fg-quaternary tw:focus-visible:outline-2 tw:focus-visible:-outline-offset-2 tw:focus-visible:outline-brand tw:disabled:cursor-not-allowed tw:disabled:bg-disabled_subtle tw:disabled:text-disabled',
'tw:appearance-none tw:rounded-lg tw:bg-primary tw:px-3.5 tw:py-2.5 tw:text-md tw:font-medium tw:text-primary tw:shadow-xs tw:outline-1 tw:-outline-offset-1 tw:outline-primary tw:transition tw:duration-100 tw:ease-linear tw:placeholder:text-placeholder tw:focus-visible:outline-2 tw:focus-visible:-outline-offset-2 tw:focus-visible:outline-brand tw:disabled:cursor-not-allowed tw:disabled:bg-disabled_subtle tw:disabled:text-disabled',
// Styles when the select is within an `InputGroup`
'tw:in-data-input-wrapper:flex tw:in-data-input-wrapper:h-full tw:in-data-input-wrapper:gap-1 tw:in-data-input-wrapper:bg-inherit tw:in-data-input-wrapper:px-3 tw:in-data-input-wrapper:py-2 tw:in-data-input-wrapper:font-normal tw:in-data-input-wrapper:text-tertiary tw:in-data-input-wrapper:shadow-none tw:in-data-input-wrapper:outline-transparent',
// Styles for the select when `TextField` is disabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,28 +86,34 @@ test.describe(
await page.locator('[data-testid="signup"]').click();

// Enter credentials
await page.locator('#firstName').fill(CREDENTIALS.firstName);
await page.locator('input[name="firstName"]').fill(CREDENTIALS.firstName);

await expect(page.locator('#firstName')).toHaveValue(
await expect(page.locator('input[name="firstName"]')).toHaveValue(
CREDENTIALS.firstName
);

await page.locator('#lastName').fill(CREDENTIALS.lastName);
await page.locator('input[name="lastName"]').fill(CREDENTIALS.lastName);

await expect(page.locator('#lastName')).toHaveValue(CREDENTIALS.lastName);
await expect(page.locator('input[name="lastName"]')).toHaveValue(
CREDENTIALS.lastName
);

await page.locator('#email').fill(CREDENTIALS.email);
await page.locator('input[name="email"]').fill(CREDENTIALS.email);

await expect(page.locator('#email')).toHaveValue(CREDENTIALS.email);
await expect(page.locator('input[name="email"]')).toHaveValue(
CREDENTIALS.email
);

await page.locator('#password').fill(CREDENTIALS.password);
await page.locator('input[name="password"]').fill(CREDENTIALS.password);

await expect(page.locator('#password')).toHaveAttribute(
await expect(page.locator('input[name="password"]')).toHaveAttribute(
'type',
'password'
);

await page.locator('#confirmPassword').fill(CREDENTIALS.password);
await page
.locator('input[name="confirmPassword"]')
.fill(CREDENTIALS.password);

const createUserResponse = page.waitForResponse(`/api/v1/users/signup`);
// Click on create account button
Expand All @@ -117,8 +123,8 @@ test.describe(
await expect(page).toHaveURL(`/signin`);

// Login with the created user
await page.fill('#email', CREDENTIALS.email);
await page.fill('#password', CREDENTIALS.password);
await page.fill('input[name="email"]', CREDENTIALS.email);
await page.fill('input[name="password"]', CREDENTIALS.password);
const loginResponse = page.waitForResponse(`/api/v1/auth/login`);
await page.locator('[data-testid="login"]').click();
await loginResponse;
Expand Down Expand Up @@ -174,17 +180,17 @@ test.describe(
test('Signin using invalid credentials', async ({ page }) => {
await page.goto(`/signin`);
// Login with invalid email
await page.fill('#email', invalidEmail);
await page.fill('#password', CREDENTIALS.password);
await page.fill('input[name="email"]', invalidEmail);
await page.fill('input[name="password"]', CREDENTIALS.password);
const loginResponse = page.waitForResponse(`/api/v1/auth/login`);
await page.locator('[data-testid="login"]').click();
await loginResponse;

await toastNotification(page, LOGIN_ERROR_MESSAGE);

// Login with invalid password
await page.fill('#email', CREDENTIALS.email);
await page.fill('#password', invalidPassword);
await page.fill('input[name="email"]', CREDENTIALS.email);
await page.fill('input[name="password"]', invalidPassword);
const loginResponse2 = page.waitForResponse(`/api/v1/auth/login`);
await page.locator('[data-testid="login"]').click();
await loginResponse2;
Expand All @@ -200,7 +206,7 @@ test.describe(
await expect(page).toHaveURL(`/forgot-password`);

// Enter email
await page.locator('#email').fill(CREDENTIALS.email);
await page.locator('input[name="email"]').fill(CREDENTIALS.email);
// Click on Forgot button
await page.getByRole('button', { name: 'Send Login Link' }).click();
await page.locator('[data-testid="go-back-button"]').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ export class UserClass {
await page.waitForURL('**/signin');
}
await page.waitForLoadState('domcontentloaded');
const emailInput = page.locator('input[id="email"]');
const emailInput = page.locator('input[name="email"]');
await emailInput.waitFor({ state: 'visible' });
await emailInput.fill(userName);
await page.locator('#email').press('Tab');
await page.fill('input[id="password"]', password);
await emailInput.press('Tab');
await page.fill('input[name="password"]', password);
const loginRes = page.waitForResponse('/api/v1/auth/login');
await page.getByTestId('login').click();
await loginRes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const authenticateAdminPage = async (page: Page) => {
// noise that points at a login stall that never happened. any() consumes it.
const requiresLogin = await Promise.any([
page
.locator('#email')
.locator('input[name="email"]')
.waitFor({ state: 'visible' })
.then(() => true),
page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
state: 'detached',
});

const dataAssetDropdownRequest = page.waitForResponse(

Check warning on line 610 in openmetadata-ui/src/main/resources/ui/playwright/utils/user.ts

View workflow job for this annotation

GitHub Actions / checkstyle

Use waitForAggregation from playwright/utils/searchAggregation instead of waiting on search/aggregate directly — a wait that names only the endpoint or field also matches the dropdown-open request and can resolve early
'/api/v1/search/aggregate?index=dataAsset&field=entityType.keyword*'
);

Expand Down Expand Up @@ -711,8 +711,8 @@
await fillDescriptionBox(page, 'Adding new user');

await page.click(':nth-child(2) > .ant-radio > .ant-radio-input');
await page.fill('#password', password);
await page.fill('#confirmPassword', password);
await page.fill('input[name="password"]', password);
await page.fill('input[name="confirmPassword"]', password);

const rolesCombobox = page
.getByTestId('roles-dropdown')
Expand Down Expand Up @@ -779,8 +779,8 @@
await fillDescriptionBox(page, 'Adding new user');

await page.click(':nth-child(2) > .ant-radio > .ant-radio-input');
await page.fill('#password', password);
await page.fill('#confirmPassword', password);
await page.fill('input[name="password"]', password);
await page.fill('input[name="confirmPassword"]', password);

const saveResponse = page.waitForResponse('/api/v1/users');
await page.click('[data-testid="save-user"]');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ icon**, **input**, **trailing slot** (tooltip / invalid icon / shortcut),
| Group surface | `tw:bg-primary` `tw:shadow-xs` `tw:rounded-lg` |
| Group border | `tw:outline-1 tw:-outline-offset-1 tw:outline-primary` |
| Focus border | `tw:outline-2 tw:-outline-offset-2 tw:outline-brand` |
| Input text / placeholder | `tw:text-primary` / `tw:placeholder:text-tertiary` |
| Input text / placeholder | `tw:text-primary` / `tw:placeholder:text-placeholder` |
| Leading icon | `tw:text-fg-quaternary` (disabled `tw:text-fg-disabled`) |
| Padding (sm / md) | `tw:px-3 tw:py-2` / `tw:px-3.5 tw:py-2.5` |
| Disabled | `tw:bg-disabled_subtle` `tw:outline-disabled` `tw:text-disabled` |
Expand Down
Binary file not shown.
Loading
Loading