mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
test: enhance visibility checks in worktree integration tests
- Updated the description input locator to use a more specific selector. - Added a visibility check for the description textarea before filling it, improving test reliability.
This commit is contained in:
@@ -2716,10 +2716,11 @@ test.describe("Worktree Integration Tests", () => {
|
|||||||
const editDialog = page.locator('[data-testid="edit-feature-dialog"]');
|
const editDialog = page.locator('[data-testid="edit-feature-dialog"]');
|
||||||
await expect(editDialog).toBeVisible({ timeout: 5000 });
|
await expect(editDialog).toBeVisible({ timeout: 5000 });
|
||||||
|
|
||||||
// Update the description
|
// Update the description - wait for the textarea to be visible
|
||||||
const descInput = page.locator(
|
const descInput = page.locator(
|
||||||
'[data-testid="edit-feature-description"] textarea'
|
'[data-testid="feature-description-input"]'
|
||||||
);
|
);
|
||||||
|
await expect(descInput).toBeVisible({ timeout: 5000 });
|
||||||
await descInput.fill("Feature with PR URL persistence - updated");
|
await descInput.fill("Feature with PR URL persistence - updated");
|
||||||
|
|
||||||
// Save the feature
|
// Save the feature
|
||||||
|
|||||||
Reference in New Issue
Block a user