File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
tests/critical-path/database Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export class MyRedisDatabasePage {
23
23
editAliasButton = Selector ( '[data-testid=edit-alias-btn]' ) ;
24
24
applyButton = Selector ( '[data-testid=apply-btn]' ) ;
25
25
submitChangesButton = Selector ( '[data-testid=btn-submit]' ) ;
26
+ promoButton = Selector ( '[data-testid=promo-btn]' ) ;
26
27
//CHECKBOXES
27
28
selectAllCheckbox = Selector ( '[data-test-subj=checkboxSelectAll]' ) ;
28
29
//ICONS
Original file line number Diff line number Diff line change @@ -36,14 +36,16 @@ fixture `Automatically update information`
36
36
test
37
37
. meta ( { rte : rte . standalone , env : env . desktop } )
38
38
( 'Verify that user has the ability to update "Create free database" button without changing the app' , async t => {
39
+ //Create new file paths due to cacheability
39
40
const buildFilePathNew = editJsonFile ( buildPath ) ;
40
41
const createRedisFilePathNew = editJsonFile ( createRedisPath ) ;
41
- //Check the promo button
42
+ //Check the promo button after the opening of app
42
43
await t . expect ( myRedisDatabasePage . promoButton . textContent ) . notContains ( cloudValueForEdit , 'Promo button text is updated' ) ;
43
- //Check the json files are automatically updated
44
+ //Get the values from build.json and create-redis.json files
44
45
const timestampAfterUpdate = await buildFilePathNew . get ( 'timestamp' ) ;
45
46
const cloudTitle = await createRedisFilePathNew . get ( 'cloud.title' ) ;
46
47
const cloudDescription = await createRedisFilePathNew . get ( 'cloud.description' ) ;
48
+ //Check the json files are automatically updated
47
49
await t . expect ( timestampAfterUpdate ) . notEql ( timestampForEdit , 'The timestamp in the build.json file is automatically updated' ) ;
48
50
await t . expect ( cloudTitle ) . notEql ( cloudValueForEdit , 'The cloud title in the create-redis.json file is automatically updated' ) ;
49
51
await t . expect ( cloudDescription ) . notEql ( cloudValueForEdit , 'The cloud description in the create-redis.json file is automatically updated' ) ;
You can’t perform that action at this time.
0 commit comments