Skip to content

Commit 2fdbcca

Browse files
committed
e2e ui testing fixes
1 parent f4803f6 commit 2fdbcca

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/proxy_admin_ui_tests/e2e_ui_tests/login_to_ui.spec.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,14 @@ test('admin login test', async ({ page }) => {
3131
'Usage',
3232
'Teams',
3333
'Internal User',
34-
'Logging & Alerts',
35-
'Caching',
36-
'Budgets',
37-
'Router Settings',
38-
'Pass-through',
39-
'Admin Settings',
34+
'Settings',
35+
'Experimental',
4036
'API Reference',
4137
'Model Hub'
4238
];
4339

4440
for (const tab of tabs) {
45-
const tabElement = page.locator('p.text-tremor-default.text-tremor-content.dark\\:text-dark-tremor-content', { hasText: tab });
41+
const tabElement = page.locator('span.ant-menu-title-content', { hasText: tab });
4642
await tabElement.click();
4743
}
4844
});

tests/proxy_admin_ui_tests/e2e_ui_tests/view_internal_user.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test('view internal user page', async ({ page }) => {
2121
// Optionally, you can click the login button to submit the form
2222
await loginButton.click();
2323

24-
const tabElement = page.locator('p.text-tremor-default.text-tremor-content.dark\\:text-dark-tremor-content', { hasText: 'Internal User' });
24+
const tabElement = page.locator('span.ant-menu-title-content', { hasText: 'Internal User' });
2525
await tabElement.click();
2626

2727
// try to click on button

0 commit comments

Comments
 (0)