diff --git a/packages/testing-kit/src/__TESTS__/buttonGroup.spec.js b/packages/testing-kit/src/__TESTS__/buttonGroup.spec.js index 33b0128201..319d0c4cf8 100644 --- a/packages/testing-kit/src/__TESTS__/buttonGroup.spec.js +++ b/packages/testing-kit/src/__TESTS__/buttonGroup.spec.js @@ -14,7 +14,7 @@ test.describe("ButtonGroup Class with Storybook", () => { // Locate the button group inside the iframe const buttonGroupLocator = frame.locator('div[data-testid="button-group"]'); - while (await button.locator.isVisible() === false) { + while (await buttonGroupLocator.locator.isVisible() === false) { await page.waitForTimeout(30000); await page.reload(); if (await buttonGroupLocator.locator.isVisible() === true) {