Commit e501fb59 authored by Paul Slaughter's avatar Paul Slaughter

Add 'for' to 'File' label for snippet_file_path

parent 3610b817
...@@ -16,7 +16,7 @@ export default { ...@@ -16,7 +16,7 @@ export default {
<template> <template>
<div class="form-group file-editor"> <div class="form-group file-editor">
<label>{{ s__('Snippets|File') }}</label> <label for="snippet_file_path">{{ s__('Snippets|File') }}</label>
<template v-if="blobs.length"> <template v-if="blobs.length">
<snippet-blob-edit v-for="blob in blobs" :key="blob.name" :blob="blob" v-on="$listeners" /> <snippet-blob-edit v-for="blob in blobs" :key="blob.name" :blob="blob" v-on="$listeners" />
</template> </template>
......
...@@ -92,7 +92,11 @@ export default { ...@@ -92,7 +92,11 @@ export default {
</script> </script>
<template> <template>
<div class="file-holder snippet"> <div class="file-holder snippet">
<blob-header-edit v-model="filePath" data-qa-selector="file_name_field" /> <blob-header-edit
id="snippet_file_path"
v-model="filePath"
data-qa-selector="file_name_field"
/>
<gl-loading-icon <gl-loading-icon
v-if="isContentLoading" v-if="isContentLoading"
:label="__('Loading snippet')" :label="__('Loading snippet')"
......
...@@ -6,6 +6,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = ` ...@@ -6,6 +6,7 @@ exports[`Snippet Blob Edit component rendering matches the snapshot 1`] = `
> >
<blob-header-edit-stub <blob-header-edit-stub
data-qa-selector="file_name_field" data-qa-selector="file_name_field"
id="snippet_file_path"
value="lorem.txt" value="lorem.txt"
/> />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment