@@ -37,7 +37,7 @@ test('can trash an invariant content node', {tag: '@smoke'}, async ({umbracoApi,
37
37
await umbracoUi . content . clickConfirmTrashButton ( ) ;
38
38
39
39
// Assert
40
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
40
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
41
41
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
42
42
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
43
43
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -58,7 +58,7 @@ test('can trash a variant content node', async ({umbracoApi, umbracoUi}) => {
58
58
await umbracoUi . content . clickConfirmTrashButton ( ) ;
59
59
60
60
// Assert
61
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
61
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
62
62
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
63
63
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
64
64
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -80,7 +80,7 @@ test('can trash a published content node', async ({umbracoApi, umbracoUi}) => {
80
80
await umbracoUi . content . clickConfirmTrashButton ( ) ;
81
81
82
82
// Assert
83
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
83
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
84
84
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
85
85
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
86
86
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -107,7 +107,7 @@ test('can trash an invariant content node that references one item', async ({umb
107
107
await umbracoUi . content . clickConfirmTrashButton ( ) ;
108
108
109
109
// Assert
110
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
110
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
111
111
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
112
112
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
113
113
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -134,7 +134,7 @@ test('can trash a variant content node that references one item', async ({umbrac
134
134
await umbracoUi . content . clickConfirmTrashButton ( ) ;
135
135
136
136
// Assert
137
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
137
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
138
138
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
139
139
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
140
140
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -170,7 +170,7 @@ test('can trash an invariant content node that references more than 3 items', as
170
170
await umbracoUi . content . clickConfirmTrashButton ( ) ;
171
171
172
172
// Assert
173
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
173
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
174
174
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
175
175
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
176
176
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -211,7 +211,7 @@ test('can trash a variant content node that references more than 3 items', async
211
211
await umbracoUi . content . clickConfirmTrashButton ( ) ;
212
212
213
213
// Assert
214
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
214
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
215
215
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
216
216
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
217
217
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
@@ -226,6 +226,7 @@ test('can trash a content node with multiple cultures that references one item',
226
226
// Arrange
227
227
const firstCulture = 'en-US' ;
228
228
const secondCulture = 'da' ;
229
+ await umbracoApi . language . ensureIsoCodeNotExists ( secondCulture ) ;
229
230
await umbracoApi . language . createDanishLanguage ( ) ;
230
231
// Create a content node with multiple cultures
231
232
const documentTypeId = await umbracoApi . documentType . createVariantDocumentTypeWithInvariantPropertyEditor ( documentTypeName , dataTypeName , dataTypeId ) ;
@@ -247,11 +248,11 @@ test('can trash a content node with multiple cultures that references one item',
247
248
await umbracoUi . content . clickConfirmTrashButton ( ) ;
248
249
249
250
// Assert
250
- await umbracoUi . content . doesSuccessNotificationHaveText ( NotificationConstantHelper . success . movedToRecycleBin ) ;
251
+ await umbracoUi . content . waitForContentToBeTrashed ( ) ;
251
252
expect ( await umbracoApi . document . doesNameExist ( contentName ) ) . toBeFalsy ( ) ;
252
253
await umbracoUi . content . isItemVisibleInRecycleBin ( contentName ) ;
253
254
expect ( await umbracoApi . document . doesItemExistInRecycleBin ( contentName ) ) . toBeTruthy ( ) ;
254
255
255
256
// Clean
256
257
await umbracoApi . language . ensureIsoCodeNotExists ( secondCulture ) ;
257
- } ) ;
258
+ } ) ;
0 commit comments