DevelopingCoder/cs61a_hintr

View on GitHub
features/threshold.feature

Summary

Maintainability
Test Coverage
Feature: Change message threshold
  
  As a hintr admin
  So that I can control the finalization of messages
  I want to be able to change the threshold of upvotes a message needs to be finalized
 
Background:
  Given the threshold is 3
  
Scenario: An admin can change the threshold
  Given I am logged in as an admin
  And I follow "Concepts"
  Then the threshold should be 3
  
  Given I fill in "threshold" with "1"
  And I press "Change"
  Then the threshold should be 1
  
Scenario: A nonadmin cannot change the threshold
  Given I am logged in
  And I follow "Concepts"
  Then I should not see "Current threshold"