mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-08 06:53:11 +00:00
fix(test): customize details page and persona flow (#23839)
* fix(test): customize details page and persona flow * revert playwright config
This commit is contained in:
parent
7bdd9008ec
commit
7a29bf1e2c
@ -10,7 +10,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
import { expect, Page, test as base } from '@playwright/test';
|
import { test as base, expect, Page } from '@playwright/test';
|
||||||
import {
|
import {
|
||||||
ECustomizedDataAssets,
|
ECustomizedDataAssets,
|
||||||
ECustomizedGovernance,
|
ECustomizedGovernance,
|
||||||
@ -32,7 +32,6 @@ import {
|
|||||||
checkDefaultStateForNavigationTree,
|
checkDefaultStateForNavigationTree,
|
||||||
validateLeftSidebarWithHiddenItems,
|
validateLeftSidebarWithHiddenItems,
|
||||||
} from '../../utils/customizeNavigation';
|
} from '../../utils/customizeNavigation';
|
||||||
import { waitForAllLoadersToDisappear } from '../../utils/entity';
|
|
||||||
import { navigateToPersonaWithPagination } from '../../utils/persona';
|
import { navigateToPersonaWithPagination } from '../../utils/persona';
|
||||||
import { settingClick } from '../../utils/sidebar';
|
import { settingClick } from '../../utils/sidebar';
|
||||||
|
|
||||||
@ -147,10 +146,12 @@ test.describe('Persona customize UI tab', async () => {
|
|||||||
await redirectToHomePage(adminPage);
|
await redirectToHomePage(adminPage);
|
||||||
|
|
||||||
// Navigate to persona page
|
// Navigate to persona page
|
||||||
|
const personaListResponse = adminPage.waitForResponse(`/api/v1/personas?*`);
|
||||||
await settingClick(adminPage, GlobalSettingOptions.PERSONA);
|
await settingClick(adminPage, GlobalSettingOptions.PERSONA);
|
||||||
await adminPage.waitForLoadState('networkidle');
|
await personaListResponse;
|
||||||
await waitForAllLoadersToDisappear(adminPage, 'skeleton-card-loader');
|
|
||||||
await adminPage.getByText(persona.responseData.displayName).click();
|
// Need to find persona card and click as the list might get paginated
|
||||||
|
await navigateToPersonaWithPagination(adminPage, persona.data.name, true);
|
||||||
await adminPage.getByRole('tab', { name: 'Customize UI' }).click();
|
await adminPage.getByRole('tab', { name: 'Customize UI' }).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user