Skip to content
Permalink
Browse files
Fixing Rating UI Bug
Moved the average ratings outside of the auth handlebars block so that guests could still see the average rating of each answer
Added that new element to the acceptance test to prevent it from failing
  • Loading branch information
reisborw committed Dec 4, 2019
1 parent 7e450a3 commit c775acff37c66d088df0749ec39db63f86e98f7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
@@ -79,9 +79,9 @@
</select>
<input type="submit" value="RATE">
</form>
<p>{{average_rate}}★</p>
{{/if_diff}}
{{/if}}
<p class="avg-rate">Average: {{average_rate}}★</p>
</article>
{{/each}}
</main>
@@ -37,6 +37,8 @@ Feature: Create an answer
Sam Smith
{current date}
Average: 0★
"""

Scenario: create another answer for question when logged in
@@ -56,6 +58,8 @@ Feature: Create an answer
Emma Jones
{current date}
Average: 0★
"""

Scenario: create an answer for question2 when loggin in
@@ -75,4 +79,6 @@ Feature: Create an answer
Sam Smith
{current date}
Average: 0★
"""
@@ -375,6 +375,11 @@ main > article.answers > form.rate {
float: left;
}

main > article.answers > p.avg-rate {
padding-left: 25px;
color: #001242;
}

/********************************************************************************************************************
*
* Register Page CSS
@@ -430,7 +435,7 @@ main > section > form.register-login > p > input[type=submit] {

/********************************************************************************************************************
*
* Answers Page CSS
* Create Question Page CSS
*
*********************************************************************************************************************/
main > section > form.newquestion {

0 comments on commit c775acf

Please sign in to comment.