Skip to content

Commit

Permalink
Fix Laravel Nova 5 random dropdown issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LucWollants committed Dec 19, 2024
1 parent 8dedb31 commit 96503b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/integrations/admin/activate-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("As an admin I can activate an integration", async ({ page }) => {

// activate integration
await page.goto(`/admin/resources/integrations/${integrationId}`);
await page.locator("#nova-ui-dropdown-button-5").click();
await page.locator(`[dusk="${integrationId}-control-selector"]`).click();
await page.getByRole("button", { name: "Activate Integration" }).click();
await page.locator("#organization").selectOption(organizationId);
await page.locator("[dusk='confirm-action-button']").click();
Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/integrations/admin/approve-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test("As an admin I can approve an integration", async ({ page }) => {

// approve integration
await page.goto(`/admin/resources/integrations/${integrationId}`);
await page.locator("#nova-ui-dropdown-button-5").click();
await page.locator(`[dusk="${integrationId}-control-selector"]`).click();
await page.getByRole("button", { name: "Approve Integration" }).click();
await page.locator("[dusk='confirm-action-button']").click();

Expand Down
2 changes: 1 addition & 1 deletion e2e/tests/integrations/admin/block-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test("As an admin I can block an integration", async ({ page }) => {

// block integration
await page.goto(`/admin/resources/integrations/${id}`);
await page.locator("#nova-ui-dropdown-button-5").click();
await page.locator(`[dusk="${id}-control-selector"]`).click();
await page.getByRole("button", { name: "Block Integration" }).click();
await page.locator("[dusk='confirm-action-button']").click();
await expect(page.getByText('Statusblocked', { exact: true })).toBeVisible();
Expand Down

0 comments on commit 96503b9

Please sign in to comment.