Lorem Ipsum is simply dummy text of the printing and typesetting industry.
',
+ );
- const element = await page.find('bq-dialog >>> p');
+ const element = await page.find('bq-dialog');
- expect(element).toEqualText('My name is Stencil');
+ expect(element).toEqualText('Lorem Ipsum is simply dummy text of the printing and typesetting industry.');
});
+
+ // it('closes dialog when clicking on the close button', async () => {
+ // const page = await newE2EPage();
+ // await page.setContent('');
+
+ // const dialogClosedEvent = await page.spyOnEvent('bqClick');
+
+ // const element = await page.find('bq-dialog >>> [part="button-close"]');
+
+ // await element.click();
+
+ // expect(dialogClosedEvent).toHaveReceivedEventTimes(1);
+ // });
+
+ // it('should render footer with at least one button', async () => {
+ // const page = await newE2EPage();
+ // await page.setContent(`
+ //
+ //
+ // `);
+
+ // const element = await page.find('bq-dialog');
+
+ // expect(element).toContain('bq-button');
+ // });
});
diff --git a/packages/bee-q/src/components/dialog/bq-dialog.tsx b/packages/bee-q/src/components/dialog/bq-dialog.tsx
index 02b5e9475..8020ce3a3 100644
--- a/packages/bee-q/src/components/dialog/bq-dialog.tsx
+++ b/packages/bee-q/src/components/dialog/bq-dialog.tsx
@@ -6,7 +6,7 @@ import { DIALOG_SIZE, DIALOG_FOOTER_VARIANT, TDialogSize, TDialogFooterVariant }
/**
* @part base - The component wrapper container inside the shadow DOM
* @part container - The `
` container that holds the dialog content
- * @part icon-close - The icon that close the dialog on click
+ * @part button-close - The button that close the dialog on click
*/
@Component({
@@ -125,16 +125,17 @@ export class BqDialog {