@@ -32,18 +32,7 @@ export const testSegment1 = async () => {
32
32
log ( 'Login' )
33
33
await login ( E2E_USER , PASSWORD )
34
34
35
- log ( 'Create Organisation' )
36
- await click ( byId ( 'create-organisation-btn' ) )
37
- await setText ( '[name="orgName"]' , 'Bullet Train Ltd 2' )
38
- await click ( '#create-org-btn' )
39
- await waitForElementVisible ( byId ( 'project-select-page' ) )
40
-
41
- log ( 'Create Project' )
42
-
43
- await click ( '.btn-project-create' )
44
- await setText ( byId ( 'projectName' ) , 'My Segment Test Project' )
45
- await click ( byId ( 'create-project-btn' ) )
46
- await waitForElementVisible ( byId ( 'features-page' ) )
35
+ await click ( '#project-select-1' )
47
36
48
37
log ( 'Create Feature' )
49
38
@@ -146,20 +135,7 @@ export const testSegment1 = async () => {
146
135
export const testSegment2 = async ( ) => {
147
136
log ( 'Login' )
148
137
await login ( E2E_USER , PASSWORD )
149
-
150
- log ( 'Create Organisation' )
151
- await click ( byId ( 'create-organisation-btn' ) )
152
- await setText ( '[name="orgName"]' , 'Bullet Train Ltd 3' )
153
- await click ( '#create-org-btn' )
154
- await waitForElementVisible ( byId ( 'project-select-page' ) )
155
-
156
- log ( 'Create Project' )
157
-
158
- await click ( '.btn-project-create' )
159
- await setText ( byId ( 'projectName' ) , 'My Segment Test Project 2' )
160
- await click ( byId ( 'create-project-btn' ) )
161
- await waitForElementVisible ( byId ( 'features-page' ) )
162
-
138
+ await click ( '#project-select-2' )
163
139
164
140
log ( 'Create segments' )
165
141
await gotoSegments ( )
@@ -244,19 +220,7 @@ export const testSegment2 = async () => {
244
220
export const testSegment3 = async ( ) => {
245
221
log ( 'Login' )
246
222
await login ( E2E_USER , PASSWORD )
247
-
248
- log ( 'Create Organisation' )
249
- await click ( byId ( 'create-organisation-btn' ) )
250
- await setText ( '[name="orgName"]' , 'Bullet Train Ltd 4' )
251
- await click ( '#create-org-btn' )
252
- await waitForElementVisible ( byId ( 'project-select-page' ) )
253
-
254
- log ( 'Create Project' )
255
-
256
- await click ( '.btn-project-create' )
257
- await setText ( byId ( 'projectName' ) , 'My Segment Test Project 3' )
258
- await click ( byId ( 'create-project-btn' ) )
259
- await waitForElementVisible ( byId ( 'features-page' ) )
223
+ await click ( '#project-select-3' )
260
224
261
225
log ( 'Create features' )
262
226
await gotoFeatures ( )
0 commit comments