Merge pull request #13 from Human-Connection/integration-testing

Preparation for integration testing
This commit is contained in:
Grzegorz Leoniec 2018-12-06 16:35:36 +01:00 committed by GitHub
commit 7bce96c171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 1 deletions

View File

@ -1,5 +1,4 @@
node_modules
build
.nuxt
cypress/
styleguide/

View File

@ -44,6 +44,7 @@
:disabled="pending"
placeholder="Deine E-Mail"
type="email"
name="email"
icon="envelope"
/>
<ds-input
@ -52,12 +53,15 @@
placeholder="Dein Password"
icon="lock"
icon-right="question-circle"
name="password"
type="password"
/>
<ds-button
:loading="pending"
primary
full-width
name="submit"
type="submit"
>
Anmelden
</ds-button>

View File

@ -63,6 +63,13 @@ export default {
type: String,
default: null
},
/**
* The name of the field for better accessibility
*/
name: {
type: String,
default: null
},
/**
* Whether the input should be automatically focused
*/

View File

@ -13,6 +13,7 @@
fullWidth && `ds-button-full-width`,
loading && `ds-button-loading`
]"
:name="name"
v-bind="bindings"
:is="linkTag">
<ds-icon
@ -74,6 +75,13 @@ export default {
return value.match(/(router-link|a|button)/)
}
},
/**
* Button name for accessibilty
*/
name: {
type: String,
default: null
},
/**
* Primary style
* `true, false`