Skip to content

Commit efcc2ab

Browse files
committed
fixed inconsistencies
1 parent 226f6ce commit efcc2ab

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

.bit/responses/4.1-Week 4 Step 1.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ submit text.
6666
<details>
6767
<summary>I'm confused on how to do this</summary>
6868

69-
- In your html file, give your form an id
70-
71-
- Change the last input from type ="button" to type = "submit"
72-
73-
```js
74-
<input value="Submit" type="submit" />
75-
```
76-
77-
- In index.js, create a variable using the id you just created:
69+
- In a new file named `index.js`, create a variable using the id **of the HTML form**:
7870

7971
```js
8072
const bunnForm = document.getElementById('bunnForm');

bunnimage/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<body>
99
<div>
1010
<h1 id="h1">Give your code some love ❤️</h1>
11-
<form>
11+
<form id="bunnForm">
1212
<label>Code: </label>
13-
<input type="text" id="name" name="name" /><br>
14-
<input value="Submit" type="button" />
13+
<input type="text" id="username" name="name" /><br>
14+
<input value="Submit" type="submit" />
1515
</form>
1616
<br/>
1717
<div id="output"></div>

cypress/integration/4.1.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('Testing Bunnimage', () => {
22
it('Testing Week 4 Step 1', () => {
33
cy.visit('bunnimage/index.html')
44
cy.get('input[type="text"]').type('console.log("hi yall")')
5-
cy.get('input[type="button"]').click()
5+
cy.get('input[type="submit"]').click()
66
cy.get('#output').contains('console.log("hi yall")❤️')
77
})
88
})

0 commit comments

Comments
 (0)