2014-10-03 00:55:27 +08:00
@core @core_grades
2014-10-02 08:50:42 +08:00
Feature : We can use natural aggregation and weights will be normalised to a total of one hundred
I n o r d e r t o o v e r r i d e w e i g h t s
A s a t e a c h e r
I n e e d t o a d d a s s e s s m e n t s t o t h e g r a d e b o o k .
Background :
Given t h e f o l l o w i n g " c o u r s e s " e x i s t :
| f u l l n a m e | s h o r t n a m e | c a t e g o r y | g r o u p m o d e |
| C o u r s e 1 | C 1 | 0 | 1 |
And t h e f o l l o w i n g " u s e r s " e x i s t :
| u s e r n a m e | f i r s t n a m e | l a s t n a m e | e m a i l | i d n u m b e r |
2015-04-14 10:47:05 +08:00
| t e a c h e r 1 | T e a c h e r | 1 | t e a c h e r 1 @ e x a m p l e . c o m | t 1 |
| s t u d e n t 1 | S t u d e n t | 1 | s t u d e n t 1 @ e x a m p l e . c o m | s 1 |
2014-10-02 08:50:42 +08:00
And t h e f o l l o w i n g " c o u r s e e n r o l m e n t s " e x i s t :
| u s e r | c o u r s e | r o l e |
| t e a c h e r 1 | C 1 | e d i t i n g t e a c h e r |
| s t u d e n t 1 | C 1 | s t u d e n t |
And t h e f o l l o w i n g " g r a d e c a t e g o r i e s " e x i s t :
| f u l l n a m e | c o u r s e |
| S u b c a t e g o r y 1 | C 1 |
And t h e f o l l o w i n g " a c t i v i t i e s " e x i s t :
| a c t i v i t y | c o u r s e | i d n u m b e r | n a m e | i n t r o | g r a d e |
| a s s i g n | C 1 | a 1 | T e s t a s s i g n m e n t o n e | S u b m i t s o m e t h i n g ! | 3 0 0 |
| a s s i g n | C 1 | a 2 | T e s t a s s i g n m e n t t w o | S u b m i t s o m e t h i n g ! | 1 0 0 |
| a s s i g n | C 1 | a 3 | T e s t a s s i g n m e n t t h r e e | S u b m i t s o m e t h i n g ! | 1 5 0 |
| a s s i g n | C 1 | a 4 | T e s t a s s i g n m e n t f o u r | S u b m i t n o t h i n g ! | 1 5 0 |
And t h e f o l l o w i n g " a c t i v i t i e s " e x i s t :
| a c t i v i t y | c o u r s e | i d n u m b e r | n a m e | i n t r o | g r a d e c a t e g o r y | g r a d e |
| a s s i g n | C 1 | a 5 | T e s t a s s i g n m e n t f i v e | S u b m i t s o m e t h i n g ! | S u b c a t e g o r y 1 | 2 0 |
| a s s i g n | C 1 | a 6 | T e s t a s s i g n m e n t s i x | S u b m i t s o m e t h i n g ! | S u b c a t e g o r y 1 | 1 0 |
| a s s i g n | C 1 | a 7 | T e s t a s s i g n m e n t s e v e n | S u b m i t n o t h i n g ! | S u b c a t e g o r y 1 | 1 5 |
And I l o g i n a s " t e a c h e r 1 "
2017-03-15 15:13:09 +08:00
And I a m o n " C o u r s e 1 " c o u r s e h o m e p a g e
2016-12-06 11:30:51 +08:00
And I n a v i g a t e t o " S e t u p > G r a d e b o o k s e t u p " i n t h e c o u r s e g r a d e b o o k
2014-09-30 16:46:53 +08:00
@javascript
Scenario : Setting all weights in a category to exactly one hundred in total.
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 4 4 . 4 4 4 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 2 2 . 2 2 2 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 3 3 . 3 3 3 "
When I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 3 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 5 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 2 0 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d n o t s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 3 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 5 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 2 0 . 0 "
@javascript
Scenario : Setting all weights in a category to less than one hundred is normalised.
When I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 2 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 2 5 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 2 5 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
@javascript
Scenario : Set one of the grade item weights to a figure over one hundred.
When I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 2 0 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 1 0 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 0 . 0 "
@javascript
Scenario : Setting several but not all grade item weights to over one hundred each.
When I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 5 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 5 0 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 5 0 . 0 0 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 5 0 . 0 0 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 0 . 0 "
@javascript
2015-06-19 13:20:04 +08:00
Scenario : Grade items weights are not normalised when all grade item weights are overridden (sum exactly 100). Extra credit is set respectful to number of items.
2014-09-30 16:46:53 +08:00
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 6 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 4 0 "
And I p r e s s " S a v e c h a n g e s "
2015-06-19 13:20:04 +08:00
Then I s h o u l d n o t s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 0 . 0 0 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 0 . 0 0 0 "
2015-06-19 13:20:04 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-10-14 14:53:28 +08:00
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
@javascript
2015-06-19 13:20:04 +08:00
Scenario : Grade items weights are normalised when all grade item weights are overridden (sum over 100). Extra credit is set respectful to number of items.
2014-09-30 16:46:53 +08:00
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-09-30 16:46:53 +08:00
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 6 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 5 0 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 5 4 . 5 4 5 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 5 . 4 5 5 "
2015-06-19 13:20:04 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-10-14 14:53:28 +08:00
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-10-03 00:55:27 +08:00
@javascript
2015-06-19 13:20:04 +08:00
Scenario : Grade items weights are normalised when all grade item weights are overridden (sum under 100). Extra credit is set respectful to number of items.
2014-10-03 00:55:27 +08:00
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-10-03 00:55:27 +08:00
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 4 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 3 0 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 5 7 . 1 4 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 2 . 8 5 7 "
2015-06-19 13:20:04 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-10-14 14:53:28 +08:00
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
2014-10-03 00:55:27 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-09-30 16:46:53 +08:00
@javascript
2015-06-19 13:20:04 +08:00
Scenario : Grade items weights are normalised when not all grade item weights are overridden. Extra credit is set respectful to number of items.
2014-09-30 16:46:53 +08:00
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-09-30 16:46:53 +08:00
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 4 0 "
And I p r e s s " S a v e c h a n g e s "
2014-10-03 00:55:27 +08:00
Then I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 4 0 . 0 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 6 0 . 0 0 0 "
2015-06-19 13:20:04 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
2014-10-14 14:53:28 +08:00
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
@javascript
Scenario : The extra credit grade item weight is overridden to a figure over one hundred and then
t h e g r a d e i t e m i s s e t t o n o r m a l .
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-09-30 16:46:53 +08:00
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 0 5 "
And I p r e s s " S a v e c h a n g e s "
Then I s h o u l d n o t s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 1 0 5 . 0 "
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 0 |
2014-09-30 16:46:53 +08:00
And I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
2014-10-03 00:55:27 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 1 0 0 . 0 "
2014-09-30 16:46:53 +08:00
@javascript
Scenario : The extra credit grade item weight is overridden to a figure over one hundred and then
t h e g r a d e c a t e g o r y i s r e s e t .
2014-10-14 14:53:28 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t s e v e n " :
| E x t r a c r e d i t | 1 |
2014-09-30 16:46:53 +08:00
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 0 5 "
And I p r e s s " S a v e c h a n g e s "
2014-10-14 14:53:28 +08:00
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
2014-09-30 16:46:53 +08:00
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 6 6 . 6 6 7 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 3 3 . 3 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 0 . 0 "
@javascript
Scenario : Two out of three grade items weights are overridden and one is not.
T h e o v e r r i d d e n g r a d e i t e m w e i g h t s t o t a l o v e r o n e h u n d r e d .
Given I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 5 5 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 6 5 "
And I p r e s s " S a v e c h a n g e s "
And I s h o u l d s e e " Y o u r w e i g h t s h a v e b e e n a d j u s t e d t o t o t a l 1 0 0 . "
Then t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 5 . 8 3 3 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 5 4 . 1 6 7 "
2014-10-02 14:20:15 +08:00
@javascript
Scenario : With one grade item set as extra credit, when I reset the weights for a category they return to the natural weights.
2016-12-23 11:28:46 +08:00
When I s e t t h e f o l l o w i n g s e t t i n g s f o r g r a d e i t e m " T e s t a s s i g n m e n t f i v e " :
| E x t r a c r e d i t | 1 |
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 5 5 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " t o " 4 0 "
And I p r e s s " S a v e c h a n g e s "
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
Then t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 8 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 6 0 . 0 "
2014-10-09 16:33:53 +08:00
@javascript
Scenario : Overriding a grade item with a negative value results in the value being changed to zero.
2016-12-23 11:28:46 +08:00
When I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " - 1 5 "
And I p r e s s " S a v e c h a n g e s "
Then t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 4 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 6 0 . 0 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " - 2 5 "
And I p r e s s " S a v e c h a n g e s "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 1 0 0 . 0 "
And I r e s e t w e i g h t s f o r g r a d e c a t e g o r y " S u b c a t e g o r y 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t f i v e " t o " 1 "
And I s e t t h e f i e l d " O v e r r i d e w e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " t o " - 1 0 "
And I s e t t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " t o " 1 2 0 "
And I p r e s s " S a v e c h a n g e s "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t f i v e " m a t c h e s v a l u e " 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s i x " m a t c h e s v a l u e " 1 0 0 . 0 "
And t h e f i e l d " W e i g h t o f T e s t a s s i g n m e n t s e v e n " m a t c h e s v a l u e " 0 . 0 "