Skip to content

Commit

Permalink
fixed tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsuresh-git committed Nov 16, 2023
1 parent cf843ad commit 1a37d61
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions e2e/playwright/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import type {Page} from '@playwright/test';

import {ChannelsPage} from '@e2e-support/ui/pages';
import {UserProfile} from '@mattermost/types/users';
import Client4 from '@mattermost/client/client4';

Expand Down Expand Up @@ -41,13 +40,6 @@ export const postMessage = async (message: string, page: Page) => {
await page.getByTestId('SendMessageButton').click();
};

export const clickPostAction = async (name: string, c: ChannelsPage) => {
// We need to wait for the next post to come up, since this opening a new tab and OAuth redirect can take an undeterminate
// https://mattermost.atlassian.net/browse/MM-51906
const postElement = await c.getLastPost();
await postElement.container.getByText(name).last().click();
};

export const cleanUpBotDMs = async (client: Client4, userId: UserProfile['id'], botUsername: string) => {
const bot = await client.getUserByUsername(botUsername);

Expand Down

0 comments on commit 1a37d61

Please sign in to comment.