-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (51 loc) · 2.6 KB
/
Copy pathindex.html
File metadata and controls
59 lines (51 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<title>Parse Behat</title>
<link rel="icon" type="image/png" href="images/iconmonstr-glasses-7-48.png" />
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700|Montserrat:400,700" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="js/parse.js"></script>
</head>
<body>
<div class="container">
<h1><span class="logo"></span>Parse</h1>
<p>A simple tool to create Behat tests for markup using the <span class="code">assertRegionElement()</span> test. For more information and documentation, visit the <a href="https://github.com/patrickfweston/parse-behat">code repository</a>.</p>
<form>
<div class="form-element">
<label>Behat region<sup>*</sup></label>
<input type="text" id="region" placeholder="everywhere" data-validation-message="Please enter a Behat region." required />
<small>The name of the Behat region that these tests search for the markup. These are defined in your <span class="code">behat.yml</span> file</small>
</div>
<div class="form-element form-element--hidden">
<label>Additional options +</label>
<div class="form-element--container">
<label>Tags to exclude</label>
<input type="text" id="ignored-tags" value="svg"/>
<small>A list of tags (separated by commas or spaces) to be excluded. Inline SVGs are often stripped because they will have tests created for their interior path, fill, etc. elements.</small>
</div>
</div>
<div class="form-element">
<label>Markup<sup>*</sup></label>
<textarea id="markup" class="input" placeholder="<div class='sample'><h1 id='heading'>Homepage</h1></div>" data-validation-message="Please enter some markup region." required></textarea>
<small>The markup that tests will be created for.</small>
</div>
<small><sup>*</sup> Required field.</small>
<button type="submit" class="parse">Parse!</button>
</form>
</div>
<div class="container">
<div class="l-1up">
<div id="result">
<h2>Tests for Behat</h2>
<p>Copy these tests, or use the <em>Copy to Clipboard</em> button below and paste them into your Behat step definition.</p>
<div id="result-tests"></div>
<button id="copy-to-clipboard">Copy to Clipboard</button>
</div>
</div>
</div>
<div class="container">
<small>By <a href="http://www.palantir.net">Palantir.net</a> | Copyright 2017 Palantir.net, Inc.</small>
</div>
</body>
</html>