Skip to content

Commit 93fb24c

Browse files
committed
Add catch up steps to steps tests
1 parent 1dbb463 commit 93fb24c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/streamlit_ui_tests/toolbar/top.spec.ts

+9
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ test.describe('Top of Toolbar', () => {
4747
await expect(mito.getByText('Step History')).toBeVisible();
4848
await expect(mito.getByText('Imported', { exact: true })).toBeVisible();
4949
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: /new-column/ })).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: /new-column/ })).toBeVisible();
5059
})
5160

5261
test('Help button', async ({ page }) => {

0 commit comments

Comments
 (0)