@@ -218,6 +218,32 @@ test.describe('dashboard', () => {
218218 await si . runVisualAndA11yTests ( stepName ) ;
219219 } ) ;
220220
221+ test ( example + ' web-component note widget' , async ( { page, si } ) => {
222+ await si . visitExample ( example , undefined ) ;
223+ await openWidgetCatalog ( page ) ;
224+
225+ const noteWidget = page . getByRole ( 'option' , {
226+ name : 'Note (web-component)'
227+ } ) ;
228+ await expect ( noteWidget ) . toBeVisible ( ) ;
229+ await noteWidget . click ( ) ;
230+
231+ const next = page . getByText ( 'Next' , { exact : true } ) ;
232+ await next . click ( ) ;
233+ await page . waitForTimeout ( 1000 ) ;
234+
235+ const addBtn = page . getByText ( 'Add' , { exact : true } ) ;
236+ await expect ( addBtn ) . not . toBeDisabled ( ) ;
237+ await addBtn . click ( ) ;
238+
239+ await page . waitForTimeout ( 1000 ) ;
240+ const widgetHost = page . locator ( 'si-widget-host' , { hasText : 'Note (web-component)' } ) ;
241+ await expect ( widgetHost ) . toBeVisible ( ) ;
242+ await widgetHost . scrollIntoViewIfNeeded ( ) ;
243+
244+ await si . runVisualAndA11yTests ( 'web-component-note-widget' ) ;
245+ } ) ;
246+
221247 const openWidgetCatalog = async ( page : Page ) : Promise < void > => {
222248 await expect ( page . getByLabel ( 'Edit' ) ) . toBeVisible ( ) ;
223249 const editBtn = page . getByLabel ( 'Edit' ) ;
0 commit comments