File tree 1 file changed +9
-0
lines changed
tests/streamlit_ui_tests/toolbar
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ test.describe('Top of Toolbar', () => {
47
47
await expect ( mito . getByText ( 'Step History' ) ) . toBeVisible ( ) ;
48
48
await expect ( mito . getByText ( 'Imported' , { exact : true } ) ) . toBeVisible ( ) ;
49
49
await expect ( mito . getByText ( 'Added column' , { exact : true } ) ) . toBeVisible ( ) ;
50
+
51
+ // Click on a step and check that the column is removed
52
+ await mito . getByText ( 'Imported' , { exact : true } ) . click ( ) ;
53
+ await expect ( mito . locator ( '.endo-column-header-final-text' , { hasText : / n e w - c o l u m n / } ) ) . not . toBeVisible ( ) ;
54
+ await expect ( mito . getByText ( 'You are viewing a previous step, and cannot make any edits.' ) ) . toBeVisible ( ) ;
55
+
56
+ // Check that you can catch up to the latest step
57
+ await mito . getByText ( 'Catch up' ) . click ( ) ;
58
+ await expect ( mito . locator ( '.endo-column-header-final-text' , { hasText : / n e w - c o l u m n / } ) ) . toBeVisible ( ) ;
50
59
} )
51
60
52
61
test ( 'Help button' , async ( { page } ) => {
You can’t perform that action at this time.
0 commit comments