Skip to content

Commit 0f78603

Browse files
Merge pull request #3015 from RedisInsight/bugfix/feature/update-enablement-aria-test
fix test for enablement area
2 parents c9e0372 + 6d6dd0f commit 0f78603

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/e2e/tests/electron/critical-path/files-auto-update/enablement-area-autoupdate.e2e.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ const databaseHelper = new DatabaseHelper();
1414
const databaseAPIRequests = new DatabaseAPIRequests();
1515

1616
if (fs.existsSync(workingDirectory)) {
17-
// Guides content
18-
const guidesTimestampPath = `${workingDirectory}/guides/build.json`;
19-
// const guidesGraphIntroductionFilePath = `${workingDirectory}/guides/quick-guides/graph/introduction.md`;
2017

2118
// Tutorials content
2219
const tutorialsTimestampPath = `${workingDirectory}/tutorials/build.json`;
@@ -28,14 +25,10 @@ if (fs.existsSync(workingDirectory)) {
2825
// fs.unlinkSync(tutorialsTimeSeriesFilePath);
2926

3027
// Update timestamp for build files
31-
const guidesTimestampFile = editJsonFile(guidesTimestampPath);
3228
const tutorialsTimestampFile = editJsonFile(tutorialsTimestampPath);
3329

34-
const guidesNewTimestamp = guidesTimestampFile.get('timestamp') - 10;
3530
const tutorialNewTimestamp = tutorialsTimestampFile.get('timestamp') - 10;
3631

37-
guidesTimestampFile.set('timestamp', guidesNewTimestamp);
38-
guidesTimestampFile.save();
3932
tutorialsTimestampFile.set('timestamp', tutorialNewTimestamp);
4033
tutorialsTimestampFile.save();
4134

@@ -50,7 +43,6 @@ if (fs.existsSync(workingDirectory)) {
5043
});
5144
test('Verify that user can see updated info in Enablement Area', async t => {
5245
// Create new file due to cache-ability
53-
const guidesTimestampFileNew = editJsonFile(guidesTimestampPath);
5446
const tutorialsTimestampFileNew = editJsonFile(tutorialsTimestampPath);
5547

5648
// Open Workbench page
@@ -70,9 +62,7 @@ if (fs.existsSync(workingDirectory)) {
7062
await t.expect(tab.enablementAreaEmptyContent.visible).notOk('Tutorials folder is not updated');
7163

7264
// Check that timestamp is new
73-
const actualGuidesTimestamp = await guidesTimestampFileNew.get('timestamp');
7465
const actualTutorialTimestamp = await tutorialsTimestampFileNew.get('timestamp');
75-
await t.expect(actualGuidesTimestamp).notEql(guidesNewTimestamp, 'Guides timestamp is not updated');
7666
await t.expect(actualTutorialTimestamp).notEql(tutorialNewTimestamp, 'Tutorials timestamp is not updated');
7767
});
7868
}

0 commit comments

Comments
 (0)