Write tests for the new URL form

This commit is contained in:
Rowan Manning
2013-11-22 09:17:44 +00:00
parent b5735b7f05
commit ae5b214834
6 changed files with 155 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
{{#content "title"}}pa11y-dashboard{{/content}}
{{#if siteMessage}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="alert">
<div class="alert alert-info site-message">
<h3 class="crunch-top"><span class="pull-left glyphicon glyphicon-exclamation-sign"></span> Important</h3>
<p class="h5">{{siteMessage}}</p>
@@ -10,7 +10,7 @@
{{/if}}
{{#deleted}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="alert">
<div class="alert alert-info">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<strong>Bye Bye URL</strong>

View File

@@ -3,14 +3,14 @@
Add a new URL
{{/content}}
<form role="form" class="col-md-12" action="/new" method="post">
<form role="form" class="col-md-12" action="/new" method="post" data-test="new-url-form">
<div class="legend">
<h1 class="h2 crunch-top">Add a new URL</h1>
</div>
{{#error}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="error">
<div class="alert alert-danger">
<strong>Oh my gosh!</strong>
<p>{{.}}</p>

View File

@@ -4,7 +4,7 @@
{{/content}}
{{#added}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="alert">
<div class="alert alert-success">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<strong>Whoop whoop!</strong>
@@ -14,7 +14,7 @@
{{/added}}
{{#running}}
<div class="col-md-12 clearfix">
<div class="col-md-12 clearfix" data-test="alert">
<div class="alert alert-success">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<strong>New results incoming!</strong>