Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function MSTeamsNode() {
return tct('Send a [logo] Microsoft Teams notification to [team] team, to [channel]', {
logo: ActionMetadata[ActionType.MSTEAMS]?.icon,
team: <IntegrationField />,
channel: <TargetDisplayField />,
channel: <TargetDisplayField placeholder={t('channel name')} />,
});
}

Expand Down
7 changes: 3 additions & 4 deletions static/app/views/automations/new.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,9 @@ describe('AutomationNewSettings', () => {
});

await addAction('MS Teams');
const targets = screen.getAllByRole('textbox', {name: 'Target'});
const msTeamsTarget = targets.at(-1);
expect(msTeamsTarget).toBeDefined();
await userEvent.type(msTeamsTarget!, 'alerts-team', {delay: null});
await userEvent.type(screen.getByPlaceholderText('channel name'), 'alerts-team', {
delay: null,
});

await addAction('Pagerduty');
await addAction('Opsgenie');
Expand Down
Loading