]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Add element ids for better testability
authorJohannes Zellner <johannes@nebulon.de>
Thu, 3 Mar 2016 09:54:33 +0000 (10:54 +0100)
committerJohannes Zellner <johannes@nebulon.de>
Thu, 3 Mar 2016 09:54:33 +0000 (10:54 +0100)
app/index.html

index 071803a06cd4f17a723ee60718aff6e902392031..adb7591c94f2095046dea860fc974da7355395a9 100644 (file)
@@ -27,7 +27,7 @@
             <!-- Collect the nav links, forms, and other content for toggling -->
             <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                 <ul class="nav navbar-nav navbar-right">
-                    <li v-show="session.valid"><a href="#" v-on:click="logout()">Logout</a></li>
+                    <li v-show="session.valid"><a href="#" v-on:click="logout()" id="logoutButton">Logout</a></li>
                 </ul>
             </div>
         </div>
@@ -88,7 +88,7 @@
     <div class="container" v-show="!session.valid && !busy" v-cloak>
         <div class="row">
             <div class="col-lg-6 col-lg-offset-3">
-                <form v-on:submit.prevent="login()">
+                <form id="loginForm" v-on:submit.prevent="login()">
                     <div class="form-group">
                         <label for="inputUsername">Username</label>
                         <input type="text" class="form-control" id="inputUsername" v-model="loginData.username" placeholder="Username">
         <div class="row">
             <div class="col-lg-12">
                 <center>
-                    <input type='file' v-el:upload style="display: none"/>
-                    <button class="btn btn-primary" v-on:click="upload()">Upload</button>
+                    <input type='file' v-el:upload style="display: none" id="uploadInput"/>
+                    <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
                 </center>
                 <br/>
             </div>