diff --git a/packages/browser-studio/e2e/browser-studio.test.ts b/packages/browser-studio/e2e/browser-studio.test.ts index b59f9273b70..5bf8f58be39 100644 --- a/packages/browser-studio/e2e/browser-studio.test.ts +++ b/packages/browser-studio/e2e/browser-studio.test.ts @@ -1017,16 +1017,17 @@ export const BrowserElement = () => await canvas.dispatchEvent('drop', coordinates); await expect( - studio.getByText('Install Element', {exact: true}), + studio.getByText('Install Browser Element', {exact: true}), ).toBeVisible(); await expect( studio.getByText('Unverified drag-and-drop payload'), ).toBeVisible(); await expect( - studio.getByText( - 'Dependencies are resolved in the browser; package lifecycle scripts do not run.', - ), - ).toHaveCount(0); + studio.getByText('Packages to install', {exact: true}), + ).toBeVisible(); + await expect( + studio.getByText('@remotion/shapes', {exact: true}), + ).toBeVisible(); await studio.getByRole('button', {name: /^Install/}).click(); await expect @@ -1099,7 +1100,7 @@ export const LinkedElement = () => ; await expect(studio.getByTitle('/project').getByText('MyComp')).toBeVisible(); await expect( - studio.getByText('Install Element', {exact: true}), + studio.getByText('Install Linked Element', {exact: true}), ).toBeVisible(); await expect(page).toHaveTitle( '📦 Install Linked Element - Remotion Studio', diff --git a/packages/docs/components/layout/Button.tsx b/packages/docs/components/layout/Button.tsx index c56e9b86234..3614989ca1e 100644 --- a/packages/docs/components/layout/Button.tsx +++ b/packages/docs/components/layout/Button.tsx @@ -28,14 +28,26 @@ type PrestyledProps = DetailedHTMLProps< MandatoryProps; export const Button: React.FC = (props) => { - const {children, loading, hoverColor, fullWidth, color, size, ...other} = - props; + const { + children, + loading, + hoverColor, + fullWidth, + color, + size, + className, + ...other + } = props; const actualDisabled = other.disabled || loading; return (