@@ -47,10 +47,15 @@ describe('Error handling - commit actions', () => {
47
47
cy . getByTestId ( 'commit-row' ) . first ( ) . should ( 'contain' , originalCommitMessage ) . click ( ) ;
48
48
49
49
// Should open the commit drawer
50
- cy . get ( '. commit-view ') . first ( ) . should ( 'contain' , originalCommitMessage ) ;
50
+ cy . getByTestId ( ' commit-drawer-title ') . first ( ) . should ( 'contain' , originalCommitMessage ) ;
51
51
52
- // Click on the edit message button
53
- cy . getByTestId ( 'commit-drawer-action-edit-message' ) . should ( 'contain' , 'Edit message' ) . click ( ) ;
52
+ // Click on the kebab menu to access edit message
53
+ cy . getByTestId ( 'commit-drawer' ) . within ( ( ) => {
54
+ cy . getByTestId ( 'kebab-menu-btn' ) . click ( ) ;
55
+ } ) ;
56
+
57
+ // Click on the edit message button in the context menu
58
+ cy . getByTestId ( 'commit-row-context-menu-edit-message-menu-btn' ) . should ( 'be.enabled' ) . click ( ) ;
54
59
55
60
// Should open the commit rename drawer
56
61
cy . getByTestId ( 'edit-commit-message-box' ) . should ( 'be.visible' ) ;
@@ -271,8 +276,12 @@ describe('Error handling - commit actions', () => {
271
276
// Should open the commit drawer
272
277
cy . getByTestId ( 'commit-drawer' ) . first ( ) . should ( 'be.visible' ) ;
273
278
274
- // Click on the uncommit button
275
- cy . getByTestId ( 'commit-drawer-action-uncommit' ) . click ( ) ;
279
+ // Click on the kebab menu to access edit message
280
+ cy . getByTestId ( 'commit-drawer' ) . within ( ( ) => {
281
+ cy . getByTestId ( 'kebab-menu-btn' ) . click ( ) ;
282
+ } ) ;
283
+
284
+ cy . getByTestId ( 'commit-row-context-menu-uncommit-menu-btn' ) . should ( 'be.enabled' ) . click ( ) ;
276
285
277
286
// Should show the error message
278
287
cy . getByTestId ( 'toast-info-message' )
@@ -290,7 +299,7 @@ describe('Error handling - project acitons', () => {
290
299
} ) ;
291
300
} ) ;
292
301
293
- it . only ( 'Gracefully handle missing project' , ( ) => {
302
+ it ( 'Gracefully handle missing project' , ( ) => {
294
303
cy . getByTestId ( 'project-not-found-page' ) . should ( 'be.visible' ) ;
295
304
} ) ;
296
305
} ) ;
0 commit comments