# Manual Integration Test: Recursive Hierarchy

## DESCRIPTION

Test scrolling of a partially expanded recursive hierarchy, as well as collapsing and expanding of nodes.

## PREPARATION

To check console errors open the developer tools before starting the application and check with each step, that there are no errors and warnings. Ignore initial message bundle errors.

### Testing with mock data

Start the Recursive Hierarchy application URL (adjust host and port if necessary):

- local: http://<host>:<port>/test-resources/sap/ui/core/demokit/sample/common/index.html?component=odata.v4.RecursiveHierarchy

## REALIZE and CHECK

### First Page

- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  1 | Collapse | 0 |  | Alpha | 60
  2 | Collapse | 1 | 0 | Beta | 55
  3 | Expand | 1.1 | 1 | Gamma | 41
  3 | Expand | 1.2 | 1 | Zeta | 42
  2 | Leaf | 2 | 0 | Kappa | 56

### Collapse And Expand 0 (Alpha)

- Click on the collapse button in the row 0 (Alpha).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  1 | Expand | 0 |  | Alpha | 60

- Click on the expand button in the row 0 (Alpha).
- Check: The table should have the same content as initially (see above).

### Expand 1.1 (Gamma) and 1.2 (Zeta)

- Click on the expand buttons in the rows 1.2 (Zeta) and 1.1 (Gamma).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  1 | Collapse | 0 |  | Alpha | 60
  2 | Collapse | 1 | 0 | Beta | 55
  3 | Collapse | 1.1 | 1 | Gamma | 41
  4 | Leaf | 1.1.1 | 1.1 | Delta | 38
  4 | Leaf | 1.1.2 | 1.1 | Epsilon | 39

- Scroll down row by row until 1.2 (Zeta) is at the top.
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  3 | Collapse | 1.2 | 1 | Zeta | 42
  4 | Leaf | 1.2.1 | 1.2 | Eta | 31
  4 | Leaf | 1.2.2 | 1.2 | Theta | 32
  4 | Leaf | 1.2.3 | 1.2 | Ioata | 33
  4 | Leaf | 1.2.4 | 1.2 | Kappa | 34

### Collapse 1 (Beta)

- Scroll to the top.
- Click on the collapse button in the row 1 (Beta).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  1 | Collapse | 0 |  | Alpha | 60
  2 | Expand | 1 | 0 | Beta | 55
  2 | Leaf | 2 | 0 | Kappa | 56
  2 | Leaf | 3 | 0 | Lambda | 57
  2 | Collapse | 4 | 0 | Mu | 58

### Collapse 4 (Mu)

- Click on the collapse button in the row 4 (Mu).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  3 | Expand | 1.1 | 1 | Gamma | 41
  3 | Expand | 1.2 | 1 | Zeta | 42
  2 | Leaf | 2 | 0 | Kappa | 56
  2 | Leaf | 3 | 0 | Lambda | 57
  2 | Expand | 4 | 0 | Mu | 58

### Scroll to the bottom

- Scroll down row by row to the bottom.
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  | 2 | Leaf | 2 | 0 | Kappa | 56
  2 | Leaf | 3 | 0 | Lambda | 57
  2 | Expand | 4 | 0 | Mu | 58
  2 | Collapse | 5 | 0 | Xi | 59
  3 | Expand | 5.1 | 5 | Omicron | 41

### Expand 4 (Mu)

- Click on the expand button in the row 4 (Mu).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  2 | Leaf | 2 | 0 | Kappa | 56
  2 | Leaf | 3 | 0 | Lambda | 57
  2 | Expand | 4 | 0 | Mu | 58
  3 | Leaf | 4.1 | 4 | Nu | 41
  2 | Collapse | 5 | 0 | Xi | 59

### Expand 5.1 (Omicron)

- Scroll down, then click on the expand button in the row 5.1 (Omicron) and PAGE DOWN once to show the first page of children.
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  4 | Leaf | 5.1.1 | 5.1 | Pi | 21
  4 | Leaf | 5.1.2 | 5.1 | Rho | 22
  4 | Leaf | 5.1.3 | 5.1 | Sigma | 23
  4 | Leaf | 5.1.4 | 5.1 | Tau | 24
  4 | Leaf | 5.1.5 | 5.1 | Upsilon | 25

### Scroll to the bottom

- Scroll to the bottom.
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  4 | Leaf | 5.1.5 | 5.1 | Upsilon | 25
  4 | Leaf | 5.1.6 | 5.1 | Phi | 26
  4 | Leaf | 5.1.7 | 5.1 | Chi | 27
  4 | Leaf | 5.1.8 | 5.1 | Psi | 28
  4 | Leaf | 5.1.9 | 5.1 | Omega | 29

### Collapse 0 (Alpha)

- Scroll to the top and click on the collapse button in the row 0 (Alpha).
- Check: The table should have the following content:

  Level | (Icon's Tooltip) | ID | Manager's ID | Name | Age
  --- | --- | --- | --- | --- | ---
  1 | Expand | 0 |  | Alpha | 60