Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 380... Línea 380...
380
    And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
380
    And I should see "Visible to everyone/Non-Participation" in the "Override group" "select"
381
    And I should see "Only visible to members" in the "Override group" "select"
381
    And I should see "Only visible to members" in the "Override group" "select"
382
    And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
382
    And I should see "Only visible to members/Non-Participation" in the "Override group" "select"
383
    And I should see "Only see own membership" in the "Override group" "select"
383
    And I should see "Only see own membership" in the "Override group" "select"
384
    And I should not see "Not visible" in the "Override group" "select"
384
    And I should not see "Not visible" in the "Override group" "select"
-
 
385
 
-
 
386
  @javascript
-
 
387
  Scenario: Lesson activity group overrides are displayed on the timeline block
-
 
388
    Given the following "group members" exist:
-
 
389
      | user     | group |
-
 
390
      | student1 | G2    |
-
 
391
    And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
-
 
392
    And I set the following fields to these values:
-
 
393
      | available[enabled] | 1            |
-
 
394
      | deadline[enabled]  | 1            |
-
 
395
      | available          | ##today##    |
-
 
396
      | deadline           | ##tomorrow## |
-
 
397
    And I press "Save and display"
-
 
398
    When I log in as "student1"
-
 
399
    Then I should see "##tomorrow##%A, %d %B %Y##" in the "Timeline" "block"
-
 
400
    And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
-
 
401
    And I navigate to "Overrides" in current page administration
-
 
402
    And I select "Group overrides" from the "jump" singleselect
-
 
403
    And I follow "Add group override"
-
 
404
    And I set the following fields to these values:
-
 
405
      | Override group | Group 1            |
-
 
406
      | Available from | ##tomorrow##       |
-
 
407
      | Deadline       | ##tomorrow +1day## |
-
 
408
    And I press "Save"
-
 
409
    And I log in as "student1"
-
 
410
    And I should see "##tomorrow +1day##%A, %d %B %Y##" in the "Timeline" "block"
-
 
411
    And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
-
 
412
    And I navigate to "Overrides" in current page administration
-
 
413
    And I select "Group overrides" from the "jump" singleselect
-
 
414
    And I follow "Add group override"
-
 
415
    And I set the following fields to these values:
-
 
416
      | Override group | Group 2             |
-
 
417
      | Available from | ##tomorrow +1day##  |
-
 
418
      | Deadline       | ##tomorrow +3days## |
-
 
419
    And I press "Save"
-
 
420
    And I log in as "student1"
-
 
421
    And I should see "##tomorrow +3days##%A, %d %B %Y##" in the "Timeline" "block"
-
 
422
 
-
 
423
  @javascript
-
 
424
  Scenario: Lesson activity user override is displayed even if group override exists on the timeline block
-
 
425
    Given the following "group members" exist:
-
 
426
      | user     | group |
-
 
427
      | student1 | G2    |
-
 
428
    And I am on the "Test lesson name" "lesson activity editing" page logged in as teacher1
-
 
429
    And I set the following fields to these values:
-
 
430
      | available[enabled] | 1            |
-
 
431
      | deadline[enabled]  | 1            |
-
 
432
      | available          | ##today##    |
-
 
433
      | deadline           | ##tomorrow## |
-
 
434
    And I press "Save and display"
-
 
435
    And I navigate to "Overrides" in current page administration
-
 
436
    And I select "Group overrides" from the "jump" singleselect
-
 
437
    And I follow "Add group override"
-
 
438
    And I set the following fields to these values:
-
 
439
      | Override group | Group 1            |
-
 
440
      | Available from | ##tomorrow##       |
-
 
441
      | Deadline       | ##tomorrow +1day## |
-
 
442
    And I press "Save"
-
 
443
    And I follow "Add group override"
-
 
444
    And I set the following fields to these values:
-
 
445
      | Override group | Group 2             |
-
 
446
      | Available from | ##tomorrow +1day##  |
-
 
447
      | Deadline       | ##tomorrow +3days## |
-
 
448
    And I navigate to "Overrides" in current page administration
-
 
449
    And I follow "Add user override"
-
 
450
    And I set the following fields to these values:
-
 
451
      | Override user  | Sam1 Student1     |
-
 
452
      | Available from | ##tomorrow##      |
-
 
453
      | Deadline       | ##tomorrow noon## |
-
 
454
    And I press "Save"
-
 
455
    When I log in as "student1"
-
 
456
    Then I should see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"
-
 
457
 
-
 
458
  @javascript
-
 
459
  Scenario: Lesson activity override are not visible on timeline block when student is unenrolled
-
 
460
    Given the following "group members" exist:
-
 
461
      | user     | group |
-
 
462
      | student1 | G2    |
-
 
463
    And I am on the "Test lesson name" "lesson activity" page logged in as teacher1
-
 
464
    And I navigate to "Overrides" in current page administration
-
 
465
    And I select "Group overrides" from the "jump" singleselect
-
 
466
    And I follow "Add group override"
-
 
467
    And I set the following fields to these values:
-
 
468
      | Override group | Group 2             |
-
 
469
      | Available from | ##tomorrow +1day##  |
-
 
470
      | Deadline       | ##tomorrow +3days## |
-
 
471
    And I navigate to "Overrides" in current page administration
-
 
472
    And I follow "Add user override"
-
 
473
    And I set the following fields to these values:
-
 
474
      | Override user  | Sam1 Student1     |
-
 
475
      | Available from | ##tomorrow##      |
-
 
476
      | Deadline       | ##tomorrow noon## |
-
 
477
    And I press "Save"
-
 
478
    And I am on "Course 1" course homepage
-
 
479
    And I navigate to course participants
-
 
480
    And I click on "Unenrol" "icon" in the "student1" "table_row"
-
 
481
    And I click on "Unenrol" "button" in the "Unenrol" "dialogue"
-
 
482
    When I log in as "student1"
-
 
483
    Then "Test lesson name" "link" should not exist in the "Timeline" "block"
-
 
484
    And I should not see "##tomorrow noon##%A, %d %B %Y##" in the "Timeline" "block"