Skip to content

Commit 14a4e77

Browse files
add selector and comments
1 parent 2fc6015 commit 14a4e77

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/e2e/pageObjects/my-redis-databases-page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class MyRedisDatabasePage {
2323
editAliasButton = Selector('[data-testid=edit-alias-btn]');
2424
applyButton = Selector('[data-testid=apply-btn]');
2525
submitChangesButton = Selector('[data-testid=btn-submit]');
26+
promoButton = Selector('[data-testid=promo-btn]');
2627
//CHECKBOXES
2728
selectAllCheckbox = Selector('[data-test-subj=checkboxSelectAll]');
2829
//ICONS

tests/e2e/tests/critical-path/database/autoupdate-of-json.e2e.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ fixture `Automatically update information`
3636
test
3737
.meta({ rte: rte.standalone, env: env.desktop })
3838
('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
3940
const buildFilePathNew = editJsonFile(buildPath);
4041
const createRedisFilePathNew = editJsonFile(createRedisPath);
41-
//Check the promo button
42+
//Check the promo button after the opening of app
4243
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
4445
const timestampAfterUpdate = await buildFilePathNew.get('timestamp');
4546
const cloudTitle = await createRedisFilePathNew.get('cloud.title');
4647
const cloudDescription = await createRedisFilePathNew.get('cloud.description');
48+
//Check the json files are automatically updated
4749
await t.expect(timestampAfterUpdate).notEql(timestampForEdit, 'The timestamp in the build.json file is automatically updated');
4850
await t.expect(cloudTitle).notEql(cloudValueForEdit, 'The cloud title in the create-redis.json file is automatically updated');
4951
await t.expect(cloudDescription).notEql(cloudValueForEdit, 'The cloud description in the create-redis.json file is automatically updated');

0 commit comments

Comments
 (0)