fix(ui): use slack as default endpoint

This is so that in cloud there is not a weird UX for initial users who
see http, but cannot create an http endpoint
pull/15085/head
Michael Desa 2019-09-09 20:42:53 -04:00
parent a23962fef8
commit 4dac2f51f7
No known key found for this signature in database
GPG Key ID: 87002651EC5DFFE6
2 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ describe('Notification Endpoints', () => {
.click()
.within(() => {
cy.getByTestID('endpoint--dropdown--button').within(() => {
cy.contains('HTTP')
cy.contains('Slack')
})
cy.getByTestID('endpoint--dropdown-item pagerduty').click()

View File

@ -146,13 +146,11 @@ export const DEFAULT_ENDPOINT_URLS = {
export const NEW_ENDPOINT_DRAFT: NotificationEndpoint = {
name: 'Name this Endpoint',
method: 'POST',
authMethod: 'none',
description: '',
status: 'active',
type: 'http',
type: 'slack',
token: '',
url: DEFAULT_ENDPOINT_URLS['http'],
url: DEFAULT_ENDPOINT_URLS['slack'],
}
export const NEW_ENDPOINT_FIXTURES: NotificationEndpoint[] = [