Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool_behat
2
Feature: Confirm that we can open multiple browser tabs
3
  In order to use multiple browser tabs
4
  As a test writer
5
  I need the relevant Behat steps to work
6
 
7
  @javascript @_switch_window
8
  Scenario: Open multiple browser tabs
9
    Given the following "courses" exist:
10
      | fullname | shortname |
11
      | Course 1 | C1        |
12
      | Course 2 | C2        |
13
      | Course 3 | C3        |
14
    And I am on the "C1" "Course" page logged in as "admin"
15
 
16
    # Open a new tab on the same page.
17
    When I open a tab named "CourseViewer1" on the current page
18
    And I should see "Course 1" in the "h1" "css_element"
19
    And I am on the "C2" "Course" page
20
 
21
    # Open new tab for specified page with identifier.
22
    And I open a tab named "CourseViewer2" on the "C3" "Course" page
23
 
24
    # And for a specified page without identifier.
25
    And I open a tab named "CourseViewer4" on the "My courses" page
26
 
27
    # Switch between all the tabs and confirm their different contents.
28
    Then I should see "You're not enrolled in any course"
29
    And I switch to "CourseViewer2" tab
30
    And "Course 3" "heading" should exist
31
    And I switch to "CourseViewer1" tab
32
    And "Course 2" "heading" should exist
33
    And I switch to the main tab
34
    And "Course 1" "heading" should exist