@@ -67,6 +67,7 @@ test.describe('BlockGridEditorContent', () => {
67
67
await page . locator ( '[id="sub-view-0"]' ) . locator ( '[id="title"]' ) . fill ( newContentValue ) ;
68
68
await umbracoUi . clickDataElementByElementName ( 'sub-view-settings' ) ;
69
69
// Adds text to the setting element
70
+ await page . waitForTimeout ( 500 ) ;
70
71
await page . locator ( '[id="sub-view-1"]' ) . locator ( '[id="title"]' ) . fill ( newSettingValue ) ;
71
72
await page . locator ( '[label="Submit"]' ) . click ( ) ;
72
73
await umbracoUi . clickElement ( umbracoUi . getButtonByLabelKey ( ConstantHelper . buttons . saveAndPublish ) ) ;
@@ -231,7 +232,7 @@ test.describe('BlockGridEditorContent', () => {
231
232
const dragFromLocator = await page . locator ( '[data-content-element-type-key="' + element [ 'key' ] + '"]' , { hasText : bottomBlock } ) ;
232
233
const dragToLocator = await page . locator ( '[data-content-element-type-key="' + element [ 'key' ] + '"]' , { hasText : topBlock } ) ;
233
234
await umbracoUi . dragAndDrop ( dragFromLocator , dragToLocator , 10 , - 5 , 15 ) ;
234
-
235
+ await page . waitForTimeout ( 500 ) ;
235
236
// Assert
236
237
// Checks if the BottomBlock is moved to be under TopBlock
237
238
await expect ( page . locator ( '[data-content-element-type-key="' + element [ 'key' ] + '"]' ) . nth ( 1 ) ) . toContainText ( bottomBlock ) ;
@@ -393,7 +394,6 @@ test.describe('BlockGridEditorContent', () => {
393
394
await umbracoUi . isSuccessNotificationVisible ( ) ;
394
395
// Checks if there are two blocks in the area
395
396
await expect ( page . locator ( '[data-element="property-' + blockGridAlias + '"]' ) . locator ( 'umb-block-grid-entry' ) ) . toHaveCount ( 2 ) ;
396
-
397
397
} ) ;
398
398
399
399
test ( 'can set a maximum of required blocks in content with a block grid editor' , async ( { page, umbracoApi, umbracoUi} ) => {
@@ -458,8 +458,8 @@ test.describe('BlockGridEditorContent', () => {
458
458
await page . locator ( '[title="Delete"]' ) . nth ( 2 ) . click ( ) ;
459
459
await umbracoUi . clickElement ( umbracoUi . getButtonByLabelKey ( 'actions_delete' ) ) ;
460
460
461
- await page . waitForTimeout ( 2000 ) ;
462
- await page . getByRole ( 'button' , { name : 'Save and publish' } ) . click ( ) ;
461
+ await page . waitForTimeout ( 1000 ) ;
462
+ await umbracoUi . clickElement ( umbracoUi . getButtonByLabelKey ( ConstantHelper . buttons . saveAndPublish ) ) ;
463
463
464
464
// Assert
465
465
await umbracoUi . isSuccessNotificationVisible ( ) ;
@@ -477,7 +477,7 @@ test.describe('BlockGridEditorContent', () => {
477
477
const dataTypeBlockGrid = new BlockGridDataTypeBuilder ( )
478
478
. withName ( blockGridName )
479
479
. addBlock ( )
480
- // We use the a label so we can see if the block is live updated when content is being written to the element
480
+ // We use the label so we can see if the block is live updated when content is being written to the element
481
481
. withLabel ( '{{' + element . groups [ 0 ] . properties [ 0 ] . alias + '}}' )
482
482
. withContentElementTypeKey ( element [ 'key' ] )
483
483
. withEditorSize ( 'small' )
0 commit comments