Skip to content

Commit 8b69ce1

Browse files
Remove start modal
1 parent b7300c9 commit 8b69ce1

File tree

8 files changed

+2
-141
lines changed

8 files changed

+2
-141
lines changed

app/gui/integration-test/dashboard/actions/DrivePageActions.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import EditorPageActions from './EditorPageActions'
88
import { goToPageActions, type GoToPageActions } from './goToPageActions'
99
import NewDataLinkModalActions from './NewDataLinkModalActions'
1010
import PageActions from './PageActions'
11-
import StartModalActions from './StartModalActions'
1211

1312
const ASSET_ROW_SAFE_POSITION = { x: 150, y: 16 }
1413

@@ -368,20 +367,6 @@ export default class DrivePageActions<Context> extends PageActions<Context> {
368367
}
369368
}
370369

371-
/** Open the "start" modal. */
372-
openStartModal() {
373-
return this.step('Open "start" modal', (page) =>
374-
page.getByText(TEXT.startWithATemplate).click(),
375-
).into(StartModalActions<Context>)
376-
}
377-
378-
/** Expect the "start" modal to be visible. */
379-
expectStartModal() {
380-
return this.into(StartModalActions<Context>).withStartModal(async (startModal) => {
381-
await expect(startModal).toBeVisible()
382-
})
383-
}
384-
385370
/** Clear trash. */
386371
clearTrash() {
387372
return this.step('Clear trash', async (page) => {

app/gui/integration-test/dashboard/actions/StartModalActions.ts

Lines changed: 0 additions & 61 deletions
This file was deleted.

app/gui/integration-test/dashboard/actions/index.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
import DrivePageActions from './DrivePageActions'
1818
import LATEST_GITHUB_RELEASES from './latestGithubReleases.json' with { type: 'json' }
1919
import LoginPageActions from './LoginPageActions'
20-
import StartModalActions from './StartModalActions'
2120

2221
/** An example password that does not meet validation requirements. */
2322
export const INVALID_PASSWORD = 'password'
@@ -156,25 +155,15 @@ export function mockAll({ page, setupAPI }: MockParams) {
156155
})
157156
}
158157

159-
export interface MockAllAndLoginParams extends MockParams {
160-
readonly hideStartModal?: boolean | undefined
161-
}
158+
export interface MockAllAndLoginParams extends MockParams {}
162159

163160
/** Set up all mocks, and log in with dummy credentials. */
164-
export function mockAllAndLogin({ page, setupAPI, hideStartModal = true }: MockAllAndLoginParams) {
161+
export function mockAllAndLogin({ page, setupAPI }: MockAllAndLoginParams) {
165162
const actions = mockAll({ page, setupAPI })
166163

167164
return actions
168165
.step('Login', (page) => login({ page }))
169166
.step('Wait for dashboard to load', waitForDashboardToLoad)
170-
.step('Check if start modal is shown', async (page) => {
171-
if (hideStartModal) {
172-
// @ts-expect-error This is the only place in which the private member `.context`
173-
// should be accessed.
174-
const context = actions.context
175-
await new StartModalActions(page, context).close()
176-
}
177-
})
178167
.into(DrivePageActions<Context>)
179168
}
180169

app/gui/integration-test/dashboard/assetPanel.spec.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ function locateAssetPanelDescription(page: Page) {
1919
return locateAssetPanel(page).getByTestId('asset-panel-description')
2020
}
2121

22-
/** Find asset permissions in an asset panel. */
23-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
24-
function locateAssetPanelPermissions(page: Page) {
25-
// This has no identifying features.
26-
return locateAssetPanel(page).getByTestId('asset-panel-permissions').getByRole('button')
27-
}
28-
2922
/** An example description for the asset selected in the asset panel. */
3023
const DESCRIPTION = 'foo bar'
3124
/** An example owner username for the asset selected in the asset panel. */

app/gui/integration-test/dashboard/createAsset.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ test('create folder', ({ page }) =>
2424
test('create project', ({ page }) =>
2525
mockAllAndLogin({ page })
2626
.newEmptyProject()
27-
// FIXME[sb]: https://github.com/enso-org/cloud-v2/issues/1615
28-
// Uncomment once cloud execution in the browser is re-enabled.
2927
.waitForEditorToLoad()
3028
.goToPage.drive()
3129
.driveTable.withRows((rows) => expect(rows).toHaveCount(1)))

app/gui/integration-test/dashboard/delete.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ test('clear trash', ({ page }) =>
8383
.clearTrash()
8484
.driveTable.expectTrashPlaceholderRow()
8585
.goToCategory.cloud()
86-
.expectStartModal()
87-
.withStartModal(async (startModal) => {
88-
await expect(startModal).toBeVisible()
89-
})
90-
.close()
9186
.driveTable.withRows(async (rows) => {
9287
await expect(rows).toHaveCount(0)
9388
}))

app/gui/integration-test/dashboard/loginLogout.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ test.use({ storageState: { cookies: [], origins: [] } })
2020
test('login and logout', ({ page }) =>
2121
mockAll({ page })
2222
.login()
23-
.expectStartModal()
24-
.close()
2523
.withDriveView(async (driveView) => {
2624
await expect(driveView).toBeVisible()
2725
})

app/gui/integration-test/dashboard/startModal.spec.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)