1
- import { browser , element } from 'protractor' ;
2
- import { AppsPage } from './page/apps/apps.po' ;
3
- import { ManageRecordsPage } from './page/manage/records.po' ;
4
- import { ManageImportExportPage } from './page/manage/import-export.po' ;
5
- import { StreamsListPage } from './page/streams/list.po' ;
6
- import { StreamsRuntimePage } from './page/streams/runtime.po' ;
7
- import { TasksJobsTasksPage } from './page/tasks-jobs/tasks.po' ;
8
- import { TasksJobsExecutionsPage } from './page/tasks-jobs/executions.po' ;
9
- import { TasksJobsJobExecutionsPage } from './page/tasks-jobs/job-executions.po' ;
1
+ import { browser , element } from 'protractor' ;
2
+ import { AppsPage } from './page/apps/apps.po' ;
3
+ import { ManageRecordsPage } from './page/manage/records.po' ;
4
+ import { ManageImportExportPage } from './page/manage/import-export.po' ;
5
+ import { StreamsListPage } from './page/streams/list.po' ;
6
+ import { StreamsRuntimePage } from './page/streams/runtime.po' ;
7
+ import { TasksJobsTasksPage } from './page/tasks-jobs/tasks.po' ;
8
+ import { TasksJobsExecutionsPage } from './page/tasks-jobs/executions.po' ;
9
+ import { TasksJobsJobExecutionsPage } from './page/tasks-jobs/job-executions.po' ;
10
10
11
11
describe ( 'should display the pages' , ( ) => {
12
-
13
12
let appsPage : AppsPage ;
14
13
let manageRecordsPage : ManageRecordsPage ;
15
14
let manageImportExportPage : ManageImportExportPage ;
@@ -34,76 +33,66 @@ describe('should display the pages', () => {
34
33
} ) ;
35
34
36
35
describe ( 'Apps' , ( ) => {
37
-
38
- it ( 'should display the apps page' , async ( done ) => {
36
+ it ( 'should display the apps page' , async done => {
39
37
await appsPage . navigateTo ( ) ;
40
38
const title = await appsPage . getTitle ( ) ;
41
39
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Applications' ) ;
42
40
done ( ) ;
43
41
} ) ;
44
-
45
42
} ) ;
46
43
47
44
describe ( 'Manage section' , ( ) => {
48
-
49
-
50
- it ( 'should display the record page' , async ( done ) => {
45
+ it ( 'should display the record page' , async done => {
51
46
await manageRecordsPage . navigateTo ( ) ;
52
47
const title = await manageRecordsPage . getTitle ( ) ;
53
48
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Audit Records' ) ;
54
49
done ( ) ;
55
50
} ) ;
56
51
57
- it ( 'should display the Import / Export page' , async ( done ) => {
52
+ it ( 'should display the Import / Export page' , async done => {
58
53
await manageImportExportPage . navigateTo ( ) ;
59
54
const title = await manageImportExportPage . getTitle ( ) ;
60
55
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Import / Export' ) ;
61
56
done ( ) ;
62
57
} ) ;
63
-
64
58
} ) ;
65
59
66
60
describe ( 'Streams section' , ( ) => {
67
-
68
- it ( 'should display the stream page' , async ( done ) => {
61
+ it ( 'should display the stream page' , async done => {
69
62
await streamsListPage . navigateTo ( ) ;
70
63
const title = await streamsListPage . getTitle ( ) ;
71
64
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Streams' ) ;
72
65
done ( ) ;
73
66
} ) ;
74
67
75
- it ( 'should display the runtime page' , async ( done ) => {
68
+ it ( 'should display the runtime page' , async done => {
76
69
await streamsRuntimePage . navigateTo ( ) ;
77
70
const title = await streamsRuntimePage . getTitle ( ) ;
78
71
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Runtime' ) ;
79
72
done ( ) ;
80
73
} ) ;
81
-
82
74
} ) ;
83
75
84
76
describe ( 'Tasks section' , ( ) => {
85
-
86
- it ( 'should display the task page' , async ( done ) => {
77
+ it ( 'should display the task page' , async done => {
87
78
await tasksJobsTasksPage . navigateTo ( ) ;
88
79
const title = await tasksJobsTasksPage . getTitle ( ) ;
89
80
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Tasks' ) ;
90
81
done ( ) ;
91
82
} ) ;
92
83
93
- it ( 'should display the task executions page' , async ( done ) => {
84
+ it ( 'should display the task executions page' , async done => {
94
85
await tasksJobsExecutionsPage . navigateTo ( ) ;
95
86
const title = await tasksJobsExecutionsPage . getTitle ( ) ;
96
87
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Task Executions' ) ;
97
88
done ( ) ;
98
89
} ) ;
99
90
100
- it ( 'should display the job executions page' , async ( done ) => {
91
+ it ( 'should display the job executions page' , async done => {
101
92
await tasksJobsJobExecutionsPage . navigateTo ( ) ;
102
93
const title = await tasksJobsJobExecutionsPage . getTitle ( ) ;
103
94
expect ( element ( title ) . getText ( ) ) . toEqual ( 'Job Executions' ) ;
104
95
done ( ) ;
105
96
} ) ;
106
-
107
97
} ) ;
108
-
109
98
} ) ;
0 commit comments