Skip to content

Commit 4f79d21

Browse files
authored
test: Re-apply changes in test segments FE (#3008)
1 parent eb3cc04 commit 4f79d21

File tree

1 file changed

+3
-39
lines changed

1 file changed

+3
-39
lines changed

frontend/e2e/tests/segment-test.ts

+3-39
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,7 @@ export const testSegment1 = async () => {
3232
log('Login')
3333
await login(E2E_USER, PASSWORD)
3434

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')
4736

4837
log('Create Feature')
4938

@@ -146,20 +135,7 @@ export const testSegment1 = async () => {
146135
export const testSegment2 = async () => {
147136
log('Login')
148137
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')
163139

164140
log('Create segments')
165141
await gotoSegments()
@@ -244,19 +220,7 @@ export const testSegment2 = async () => {
244220
export const testSegment3 = async () => {
245221
log('Login')
246222
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')
260224

261225
log('Create features')
262226
await gotoFeatures()

0 commit comments

Comments
 (0)