11import { expect } from '@playwright/test' ;
22import { ProcessEditor } from './page-objects/process-editor' ;
3- import { prebuiltWorkspacePath , randomArtefactName , removeFromWorkspace } from './workspaces/workspace' ;
43import { BrowserView } from './page-objects/browser-view' ;
54import { wait } from './utils/timeout' ;
65import { test } from './fixtures/baseTest' ;
@@ -12,14 +11,6 @@ const namespace = 'testNamespace';
1211
1312test . describe ( 'Inscription View' , ( ) => {
1413 let processEditor : ProcessEditor ;
15- const cleanUp = ( ) => {
16- removeFromWorkspace ( prebuiltWorkspacePath , 'src_hd' , 'prebuiltProject' ) ;
17- removeFromWorkspace ( prebuiltWorkspacePath , 'processes' , namespace ) ;
18- } ;
19-
20- test . beforeAll ( async ( ) => {
21- cleanUp ( ) ;
22- } ) ;
2314
2415 test . beforeEach ( async ( { page } ) => {
2516 processEditor = new ProcessEditor ( page ) ;
@@ -28,10 +19,6 @@ test.describe('Inscription View', () => {
2819 await processEditor . isViewVisible ( ) ;
2920 } ) ;
3021
31- test . afterAll ( ( ) => {
32- cleanUp ( ) ;
33- } ) ;
34-
3522 test ( 'Check Process Editor Connector' , async ( ) => {
3623 let element = processEditor . locatorForPID ( userDialogPID1 ) ;
3724 await expect ( element ) . toBeVisible ( ) ;
@@ -115,7 +102,7 @@ test.describe('Inscription View', () => {
115102 const processStartField = inscriptionView . parent . getByRole ( 'combobox' ) ;
116103 await expect ( processStartField ) . toBeEmpty ( ) ;
117104 await inscriptionView . clickButton ( 'Create new Sub Process' ) ;
118- const processName = randomArtefactName ( ) ;
105+ const processName = 'subProcess' ;
119106 await inscriptionView . provideUserInput ( `${ namespace } /${ processName } ` ) ;
120107 await processEditor . isDirty ( ) ;
121108 await processEditor . isInactive ( ) ;
@@ -131,7 +118,7 @@ test.describe('Inscription View', () => {
131118 const dialogField = inscriptionView . parent . getByRole ( 'combobox' ) ;
132119 await expect ( dialogField ) . toBeEmpty ( ) ;
133120 await inscriptionView . clickButton ( 'Create new Html Dialog' ) ;
134- const userDialogName = randomArtefactName ( ) ;
121+ const userDialogName = 'htmlDialog' ;
135122 await inscriptionView . provideUserInput ( 'JSF' ) ;
136123 await inscriptionView . provideUserInput ( userDialogName ) ;
137124 await inscriptionView . provideUserInput ( ) ;
@@ -152,7 +139,7 @@ test.describe('Inscription View', () => {
152139 const dialogField = inscriptionView . parent . getByRole ( 'combobox' ) ;
153140 await expect ( dialogField ) . toBeEmpty ( ) ;
154141 await inscriptionView . clickButton ( 'Create new Html Dialog' ) ;
155- const userDialogName = randomArtefactName ( ) ;
142+ const userDialogName = 'formDialog' ;
156143 await inscriptionView . provideUserInput ( 'Form' ) ;
157144 await inscriptionView . provideUserInput ( userDialogName ) ;
158145 await inscriptionView . provideUserInput ( ) ;
@@ -171,7 +158,7 @@ test.describe('Inscription View', () => {
171158 const dialogField = inscriptionView . parent . getByRole ( 'combobox' ) ;
172159 await expect ( dialogField ) . toBeEmpty ( ) ;
173160 await inscriptionView . clickButton ( 'Create new Html Dialog' ) ;
174- const userDialogName = randomArtefactName ( ) ;
161+ const userDialogName = 'offlineDialog' ;
175162 await inscriptionView . provideUserInput ( 'JSFOffline' ) ;
176163 await inscriptionView . provideUserInput ( userDialogName ) ;
177164 await inscriptionView . provideUserInput ( ) ;
0 commit comments