Update files

This commit is contained in:
Mohamed Boudra
2026-01-23 15:10:36 +07:00
parent a6869d55c1
commit 0852f4e6d0
7 changed files with 79 additions and 12 deletions
+3 -1
View File
@@ -213,6 +213,8 @@ export const setWorkingDirectory = async (page: Page, directory: string) => {
const useOption = page.getByText(`Use "${directory}"`);
await expect(useOption).toBeVisible();
await useOption.click({ force: true });
// Wait for UI to update after clicking "Use"
await page.waitForTimeout(500);
const normalizedDirectory = directory.startsWith('/var/')
? `/private${directory}`
: directory;
@@ -220,7 +222,7 @@ export const setWorkingDirectory = async (page: Page, directory: string) => {
await expect.poll(async () => {
const text = await workingDirectoryContainer.innerText();
return text.includes(directory) || text.includes(normalizedDirectory);
}).toBe(true);
}, { timeout: 15000 }).toBe(true);
};
export const ensureHostSelected = async (page: Page) => {