Skip to content

Commit 5b959a4

Browse files
Merge pull request #34 from dsilva06/08-Bootstrap-Forms
test passed perfectly
2 parents 2e67aab + 330583f commit 5b959a4

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

exercises/08-Bootstrap-Forms/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<body>
1515
<div class="col-3 mx-auto my-5">
1616
<!-- Add your code below this line -->
17-
1817
</div>
1918
</body>
2019
</html>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
6+
<link
7+
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
8+
rel="stylesheet"
9+
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
10+
crossorigin="anonymous"
11+
/>
12+
<title>08 Bootstrap Forms</title>
13+
</head>
14+
<body>
15+
<div class="col-3 mx-auto my-5">
16+
<!-- Add your code below this line -->
17+
<form action="#" class="bg-secondary rounded p-5">
18+
<h2>Please login</h2>
19+
<div class="form-group m-2">
20+
<input type="email" class="form-control" placeholder="Email Address" />
21+
</div>
22+
<div class="form-group m-2">
23+
<input type="password" class="form-control" placeholder="Password" />
24+
</div>
25+
26+
<input type="checkbox" class="mx-2" /> <label>Remember me</label>
27+
<button type="button" class="m-2 bg-primary w-100 rounded border-0 text-white">Login</button>
28+
</form>
29+
</div>
30+
</body>
31+
</html>

exercises/08-Bootstrap-Forms/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("All the tests should pass", function () {
9090
expect(inputs[2].type.trim()).toBe("checkbox")
9191
})
9292

93-
it('The checkbox should have aside the text "Remember me"', () => {
93+
it('The checkbox should have a side text "Remember me"', () => {
9494
let rememberMe = html.toString().indexOf("Remember me")
9595
let checkbox = html.toString().indexOf("checkbox")
9696
expect(rememberMe).toBeTruthy()

0 commit comments

Comments
 (0)