- 
                Notifications
    You must be signed in to change notification settings 
- Fork 611
add test solution #800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add test solution #800
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix HTML formating and remove unnecessary class names
        
          
                src/index.html
              
                Outdated
          
        
      | <meta name="viewport" | ||
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formatting
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
| <meta | |
| name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | |
| > | 
        
          
                src/index.html
              
                Outdated
          
        
      |  | ||
| <body> | ||
| <h1>HTML Form</h1> | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces between parent and child are not needed, remove
        
          
                src/index.html
              
                Outdated
          
        
      | <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | ||
| method="post" name="personal-information"> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fiz formatting:
Also name should be camelCase
| <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | |
| method="post" name="personal-information"> | |
| <form | |
| action="https://mate-academy-form-lesson.herokuapp.com/create-application" | |
| method="post" | |
| name="personal-information" | |
| > | 
        
          
                src/index.html
              
                Outdated
          
        
      | <label for="surname">Surname: | ||
| <input | ||
| type="text" | ||
| autocomplete="off" | ||
| id="surname" | ||
| name="surname" | ||
| > | ||
| </label> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formatting:
| <label for="surname">Surname: | |
| <input | |
| type="text" | |
| autocomplete="off" | |
| id="surname" | |
| name="surname" | |
| > | |
| </label> | |
| <label for="surname"> | |
| Surname: | |
| <input | |
| type="text" | |
| autocomplete="off" | |
| id="surname" | |
| name="surname" | |
| > | |
| </label> | 
        
          
                src/index.html
              
                Outdated
          
        
      | </div> | ||
|  | ||
| <div class="input name"> | ||
| <label for="name">Name: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, check all documnent and fix formatting
        
          
                src/index.html
              
                Outdated
          
        
      | > | ||
| </label> | ||
| </div> | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove line
        
          
                src/index.html
              
                Outdated
          
        
      | <input | ||
| type="radio" | ||
| name="cats" | ||
| id="cats yes" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not add two ids, you can use for example catLoverYes
|  | ||
| <div class="input cars"> | ||
| <label for="cars">What are your favorite brand of cars? | ||
| <select | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formatting
        
          
                src/index.html
              
                Outdated
          
        
      | <form action="https://mate-academy-form-lesson.herokuapp.com/create-application" | ||
| method="post" name="personal-information"> | ||
|  | ||
| <fieldset class="form-field personal-information"> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You dont need additional classes for fieldset, remove in whole HTML and use only form-field class, I would suggest to rename it to form-fieldset for consistancy
        
          
                src/index.html
              
                Outdated
          
        
      |  | ||
| <fieldset class="form-field personal-information"> | ||
| <legend>Personal information</legend> | ||
| <div class="input surname"> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, use single class for styling input container and name class more descriptively like form-field
| I made changes as suggested, it should be fine now. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix code indentations in whole file and we are ready to go 👍🏽
|  | ||
| <body> | ||
| <h1>HTML Form</h1> | ||
| <form | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the formatting of the code. You have to use the correct code indentations.
Look Dorota's mentions before and apply it in the whole code :)
    <form 
       action="https://mate-academy-form-lesson.herokuapp.com/create-application"
       method="post"
       name="personalInformation"
    >
| done | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more and we are good to go
        
          
                src/index.html
              
                Outdated
          
        
      | <meta | ||
| charset="UTF-8" | ||
| > | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall when there is less than 3 attributes in a tag there is no need for spreading it into several lines. We do it when the attribute list is long for readability so this should simply be:
| <meta | |
| charset="UTF-8" | |
| > | |
| <meta charset="UTF-8"> | 
        
          
                src/index.html
              
                Outdated
          
        
      | content="width=device-width, user-scalable=no, initial-scale=1.0, | ||
| maximum-scale=1.0, minimum-scale=1.0" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont spread attribute value, put it in a one line
| content="width=device-width, user-scalable=no, initial-scale=1.0, | |
| maximum-scale=1.0, minimum-scale=1.0" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" | 
| <input | ||
| type="radio" | ||
| name="cats" | ||
| id="catsYes" | ||
| > | ||
| Yes | ||
|  | ||
| <input | ||
| type="radio" | ||
| name="cats" | ||
| id="catsNo" | ||
| > | ||
| No | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make Yes and No values a clicable lables so it focuses on the correct input when clicked
| <label for="cars"> | ||
| What are your favorite brand of cars? | ||
|  | ||
| <select | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formating for this select tag, add indentations
        
          
                src/index.html
              
                Outdated
          
        
      | name="cars" | ||
| id="cars" | ||
| multiple> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix formating for this select tag, add indentations like:
| name="cars" | |
| id="cars" | |
| multiple> | |
| <select | |
| name="cars" | |
| id="cars" | |
| multiple | |
| > | 
        
          
                src/index.html
              
                Outdated
          
        
      | type="submit" | ||
| value="Submit" | ||
| > | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
| Finally i had some time to fix this. Can i also please to run tests for hello world task? | 
https://arturgorniak.github.io/layout_html-form/
https://arturgorniak.github.io/layout_html-form/report/html_report/