Skip to content

Commit 564ca0b

Browse files
fix: notification endpoint Dropdown width to extend all the way (#4346)
1 parent b18437f commit 564ca0b

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

cypress/e2e/shared/notificationRules.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,9 @@ describe('NotificationRules', () => {
218218

219219
cy.get<SlackNotificationEndpoint>('@selectedEndpoint').then(({id}) => {
220220
cy.getByTestID(`endpoint--dropdown-item ${id}`).click()
221-
cy.getByTestID('endpoint--dropdown--button')
222-
.within(() => {
223-
cy.contains(name2)
224-
})
225-
.click()
221+
cy.getByTestID('endpoint--dropdown--button').within(() => {
222+
cy.contains(name2)
223+
})
226224
})
227225

228226
const message = `

src/notifications/rules/components/RuleEndpointDropdown.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,7 @@ const RuleEndpointDropdown: FC<Props> = ({
6161
)
6262

6363
return (
64-
<Dropdown
65-
button={button}
66-
menu={menu}
67-
style={{width: '160px'}}
68-
testID="endpoint-change--dropdown"
69-
/>
64+
<Dropdown button={button} menu={menu} testID="endpoint-change--dropdown" />
7065
)
7166
}
7267

0 commit comments

Comments
 (0)