From 2fdbcca9aef108a3e52875267f99fbe930231ba4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 18 Jan 2025 07:46:55 -0800 Subject: [PATCH] e2e ui testing fixes --- .../e2e_ui_tests/login_to_ui.spec.ts | 10 +++------- .../e2e_ui_tests/view_internal_user.spec.ts | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts index 730e5eec30..f5148bed16 100644 --- a/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts +++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts @@ -31,18 +31,14 @@ test('admin login test', async ({ page }) => { 'Usage', 'Teams', 'Internal User', - 'Logging & Alerts', - 'Caching', - 'Budgets', - 'Router Settings', - 'Pass-through', - 'Admin Settings', + 'Settings', + 'Experimental', 'API Reference', 'Model Hub' ]; for (const tab of tabs) { - const tabElement = page.locator('p.text-tremor-default.text-tremor-content.dark\\:text-dark-tremor-content', { hasText: tab }); + const tabElement = page.locator('span.ant-menu-title-content', { hasText: tab }); await tabElement.click(); } }); diff --git a/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts b/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts index d74a24fa7c..599bfaf166 100644 --- a/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts +++ b/tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts @@ -21,7 +21,7 @@ test('view internal user page', async ({ page }) => { // Optionally, you can click the login button to submit the form await loginButton.click(); - const tabElement = page.locator('p.text-tremor-default.text-tremor-content.dark\\:text-dark-tremor-content', { hasText: 'Internal User' }); + const tabElement = page.locator('span.ant-menu-title-content', { hasText: 'Internal User' }); await tabElement.click(); // try to click on button