Skip to content

Commit 5e8e1ad

Browse files
authored
Merge branch 'main' into fix/edit-task-modal-load
2 parents d246347 + bf89722 commit 5e8e1ad

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

test/playwright/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export async function selectFirstExperiment(page: Page) {
4242
await menuTrigger.click();
4343
const dropdown = page.locator('.select-experiment-menu').first();
4444
await dropdown.waitFor({ state: 'visible', timeout: 10000 });
45-
// Wait for experiments to load — skip "Loading..." and the "New" item at the end
46-
// by waiting for a menuitem that is NOT "Loading..." and NOT "New"
45+
// Wait for experiments to load — skip control items ("Loading...", "See all experiments", "New")
46+
// by waiting for a menuitem that is a real experiment entry
4747
const experimentItem = dropdown
4848
.getByRole('menuitem')
49-
.filter({ hasNotText: /^(Loading\.\.\.|New)$/ })
49+
.filter({ hasNotText: /^(Loading\.\.\.|See all experiments|New)$/ })
5050
.first();
5151
await expect(experimentItem).toBeVisible({ timeout: 10000 });
5252
await experimentItem.click();

test/playwright/ollama-interactive.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ test.describe('Ollama Gradio Interactive Task', () => {
5656
name: 'Configure Task',
5757
});
5858
await expect(configDialog).toBeVisible({ timeout: 10000 });
59+
// Chrome reports the freeSolo Autocomplete as 'textbox' when no history items are loaded.
5960
await configDialog
6061
.getByRole('combobox', { name: 'Model Name' })
62+
.or(configDialog.getByRole('textbox', { name: 'Model Name' }))
6163
.fill('smollm:135m');
6264

6365
// ── Step 3: Launch the task ──

0 commit comments

Comments
 (0)