e2e ui testing fixes

This commit is contained in:
Ishaan Jaff
2025-01-18 07:46:55 -08:00
parent f4803f63dc
commit 2fdbcca9ae
2 changed files with 4 additions and 8 deletions
@@ -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