Skip to content

Commit

Permalink
e2e test fixes (final?)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikoenigsknecht committed Jul 3, 2024
1 parent a25d821 commit 3bfc2f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const SettingsComponent: React.FC<SettingsComponentProps> = ({
</ListItemIcon>
</ListItemButton>
<Divider />
<ListItemButton data-testid={'qr-code-tab'} onClick={() => handleChange('qrcode')}>
<ListItemButton data-testid={'qr-code-settings-tab'} onClick={() => handleChange('qrcode')}>
<ListItemText> QR Code</ListItemText>
<ListItemIcon>
<ChevronRightIcon />
Expand All @@ -90,7 +90,7 @@ export const SettingsComponent: React.FC<SettingsComponentProps> = ({
<>
<Divider />
<ListItemButton
data-testid='leave-community-tab'
data-testid='leave-community-settings-tab'
className={classes.leaveComunity}
onClick={leaveCommunityModal.handleOpen}
>
Expand Down
3 changes: 3 additions & 0 deletions packages/e2e-tests/src/tests/multipleClients.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ describe('Multiple Clients', () => {
const isThirdChannel = await thirdChannelOwner.messageInput.isDisplayed()
expect(isThirdChannel).toBeTruthy()
await channelContextMenuOwner.openMenu()
await sleep(2000)
await channelContextMenuOwner.openDeletionChannelModal()
await sleep(2000)
await channelContextMenuOwner.deleteChannel()
await sidebarOwner.waitForChannels(['general', newChannelName])
})
Expand Down Expand Up @@ -410,6 +412,7 @@ describe('Multiple Clients', () => {
it('Leave community', async () => {
logger.info('TEST 2')
const settingsModal = await new Sidebar(users.user1.app.driver).openSettings()
await sleep(2000)
const isSettingsModal = await settingsModal.element.isDisplayed()
expect(isSettingsModal).toBeTruthy()
await sleep(2000)
Expand Down

0 comments on commit 3bfc2f2

Please sign in to comment.