fix(ui/dataLoaders): Update plugin form to use correct documentation link
parent
c010c0513f
commit
63ef3c49a3
|
@ -58,4 +58,15 @@ describe('DataLoaders.Components.CollectorsWizard.Configure.PluginConfigForm', (
|
|||
expect(onboardingButtons.exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
it('has a link to documentation containing plugin name', () => {
|
||||
const {wrapper} = setup({
|
||||
telegrafPlugin,
|
||||
})
|
||||
|
||||
const link = wrapper.find({'data-test': 'docs-link'})
|
||||
|
||||
expect(link.exists()).toBe(true)
|
||||
expect(link.prop('href')).toContain(telegrafPlugin.name)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -50,7 +50,10 @@ export class PluginConfigForm extends PureComponent<Props> {
|
|||
For more information about this plugin, see{' '}
|
||||
<a
|
||||
target="_blank"
|
||||
href={`https://github.com/influxdata/telegraf/tree/master/plugins/inputs/${name}`}
|
||||
data-test="docs-link"
|
||||
href={`https://github.com/influxdata/telegraf/tree/master/plugins/inputs/${
|
||||
telegrafPlugin.name
|
||||
}`}
|
||||
>
|
||||
Documentation
|
||||
</a>
|
||||
|
|
Loading…
Reference in New Issue