mirror of
https://github.com/enso-org/enso.git
synced 2025-01-02 06:20:13 +03:00
cf9d757457
- Fix https://github.com/enso-org/cloud-v2/issues/1383 - Fix file download - both on Electron, and in browser - Refresh versions list when uploading neww file version - Fix app crashing when asset is opened in asset panel while switching to Local Backend - Don't show asset id when asset is opened in asset panel, but user is on the Local backend, resulting in the internal Asset ID being shown - Fix drag-n-drop - ⚠️ `npm run dev` is NOT fixed in this PR - however it should already be fixed in another PR which has already been merged. This needs testing to confirm whether it is fixed though. Other changes: - Add support for "duplicate project" endpoint on Local Backend - Fix downloading project from nested directory on Local Backend (not working) - Refactor more E2E tests to use the "new" architecture - Simplify "new" E2E architecture to minimize boilerplate # Important Notes - When testing downloads, both Electron and browser should be tested as they use completely separate implementations for how files are downloaded.
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
/** @file Test the user settings tab. */
|
|
import * as test from '@playwright/test'
|
|
|
|
import * as actions from './actions'
|
|
|
|
test.test('members settings', async ({ page }) => {
|
|
const api = await actions.mockAllAndLoginAndExposeAPI({ page })
|
|
const localActions = actions.settings.members
|
|
|
|
// Setup
|
|
api.setCurrentOrganization(api.defaultOrganization)
|
|
|
|
await localActions.go(page)
|
|
await test
|
|
.expect(localActions.locateMembersRows(page).locator('> :nth-child(1) > :nth-child(2)'))
|
|
.toHaveText([api.currentUser()?.name ?? ''])
|
|
|
|
const otherUserName = 'second.user_'
|
|
const otherUser = api.addUser(otherUserName)
|
|
// await actions.closeModal(page)
|
|
await actions.relog({ page })
|
|
await localActions.go(page)
|
|
await test
|
|
.expect(localActions.locateMembersRows(page).locator('> :nth-child(1) > :nth-child(2)'))
|
|
.toHaveText([api.currentUser()?.name ?? '', otherUserName])
|
|
|
|
api.deleteUser(otherUser.userId)
|
|
// await actions.closeModal(page)
|
|
await actions.relog({ page })
|
|
await localActions.go(page)
|
|
await test
|
|
.expect(localActions.locateMembersRows(page).locator('> :nth-child(1) > :nth-child(2)'))
|
|
.toHaveText([api.currentUser()?.name ?? ''])
|
|
})
|