@@ -12,7 +12,7 @@ import {
12
12
const browserPage = new BrowserPage ( ) ;
13
13
const chance = new Chance ( ) ;
14
14
15
- const keyName = chance . word ( { length : 20 } ) ;
15
+ let keyName = chance . word ( { length : 20 } ) ;
16
16
const keyField = chance . word ( { length : 20 } ) ;
17
17
const keyValue = chance . word ( { length : 20 } ) ;
18
18
@@ -28,6 +28,7 @@ fixture `Stream Key`
28
28
await deleteDatabase ( ossStandaloneConfig . databaseName ) ;
29
29
} ) ;
30
30
test ( 'Verify that user can create Stream key via Add New Key form' , async t => {
31
+ keyName = chance . word ( { length : 20 } ) ;
31
32
// Add New Stream Key
32
33
await browserPage . addStreamKey ( keyName , keyField , keyValue ) ;
33
34
// Verify that user can see Stream details opened after key creation
@@ -64,6 +65,7 @@ test('Verify that user can add several fields and values during Stream key creat
64
65
await t . expect ( browserPage . keyNameFormDetails . withExactText ( keyName ) . visible ) . ok ( 'Stream Key Name' ) ;
65
66
} ) ;
66
67
test ( 'Verify that user can add new Stream Entry for Stream data type key which has an Entry ID, Field and Value' , async t => {
68
+ keyName = chance . word ( { length : 20 } ) ;
67
69
// Add New Stream Key
68
70
await browserPage . addStreamKey ( keyName , keyField , keyValue ) ;
69
71
// Verify that when user adds a new Entry with not existed Field name, a new Field is added to the Stream
@@ -81,6 +83,7 @@ test('Verify that user can add new Stream Entry for Stream data type key which h
81
83
await t . expect ( paramsAfterExistedFieldAdding [ 1 ] ) . eql ( toString ( toNumber ( paramsBeforeExistedFieldAdding [ 1 ] ) + 1 ) , 'Increased number of rows after adding' ) ;
82
84
} ) ;
83
85
test ( 'Verify that during new entry adding to existing Stream, user can clear the value and the row itself' , async t => {
86
+ keyName = chance . word ( { length : 20 } ) ;
84
87
// Generate data for stream
85
88
const fields = [ keyField , chance . word ( { length : 20 } ) ] ;
86
89
const values = [ keyValue , chance . word ( { length : 20 } ) ] ;
@@ -107,6 +110,7 @@ test('Verify that during new entry adding to existing Stream, user can clear the
107
110
await t . expect ( browserPage . streamField . count ) . eql ( fieldsNumberAfterDeletion , 'Number of fields after deletion' ) ;
108
111
} ) ;
109
112
test ( 'Verify that user can add several fields and values to the existing Stream Key' , async t => {
113
+ keyName = chance . word ( { length : 20 } ) ;
110
114
// Generate field value data
111
115
const entryQuantity = 10 ;
112
116
const fields : string [ ] = [ ] ;
0 commit comments