@@ -4,11 +4,8 @@ import { TextConnectionSection } from '../../../helpers/constants';
4
4
export class TestConnectionPanel {
5
5
endpointRowString = '[data-testid^=table-endpoint]' ;
6
6
7
- sidePanel = Selector ( '[data-testid=test-connection-panel]' ) ;
8
- successfulSection = Selector ( '[data-testid^=success-connections]' ) ;
9
- failedSection = Selector ( '[data-testid^=failed-connections-]' ) ;
10
- endpointRow = Selector ( this . endpointRowString ) ;
11
- closeSection = Selector ( '[data-testid=close-test-connections-btn]' ) ;
7
+ targetName = Selector ( '[data-testid=table-target-target]' ) ;
8
+ resultText = Selector ( '[data-testid=table-result-target]' ) ;
12
9
13
10
/**
14
11
* Open/Close section
@@ -23,35 +20,4 @@ export class TestConnectionPanel {
23
20
await t . click ( sectionSelector . find ( 'button' ) ) ;
24
21
}
25
22
}
26
-
27
- /**
28
- * get number of connection
29
- * @param section Name of section
30
- * @param state State of section
31
- */
32
- async getNumberOfSection ( section : TextConnectionSection ) : Promise < string > {
33
- const sectionSelector = Selector ( `[data-testid^=${ section } -connections-]` ) ;
34
- return sectionSelector . find ( 'span[data-testid="number-of-connections"]' ) . textContent ;
35
- }
36
-
37
- /**
38
- * get row count in the section
39
- * @param section Name of section
40
- */
41
- async getNumberOfSectionRow ( section : TextConnectionSection ) : Promise < string > {
42
- const sectionSelector = Selector ( `[data-testid^=${ section } -connections-]` ) ;
43
- const rows = await sectionSelector . find ( '[data-testid^=table-endpoint]' ) . count ;
44
- return rows . toString ( ) ;
45
- }
46
-
47
- /**
48
- * get row endpoint text by index
49
- * @param section Name of section
50
- * @param index index of the row to get text
51
- */
52
- async getSectionRowTextByIndex ( section : TextConnectionSection , index : number ) : Promise < string > {
53
- const sectionSelector = Selector ( `[data-testid^=${ section } -connections-]` ) ;
54
- return await ( sectionSelector . find ( this . endpointRowString ) . nth ( index ) ) . textContent ;
55
- }
56
-
57
23
}
0 commit comments