mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-06 06:24:16 +00:00
e2e ui testing fixes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user