@@ -14,9 +14,6 @@ const databaseHelper = new DatabaseHelper();
14
14
const databaseAPIRequests = new DatabaseAPIRequests ( ) ;
15
15
16
16
if ( fs . existsSync ( workingDirectory ) ) {
17
- // Guides content
18
- const guidesTimestampPath = `${ workingDirectory } /guides/build.json` ;
19
- // const guidesGraphIntroductionFilePath = `${workingDirectory}/guides/quick-guides/graph/introduction.md`;
20
17
21
18
// Tutorials content
22
19
const tutorialsTimestampPath = `${ workingDirectory } /tutorials/build.json` ;
@@ -28,14 +25,10 @@ if (fs.existsSync(workingDirectory)) {
28
25
// fs.unlinkSync(tutorialsTimeSeriesFilePath);
29
26
30
27
// Update timestamp for build files
31
- const guidesTimestampFile = editJsonFile ( guidesTimestampPath ) ;
32
28
const tutorialsTimestampFile = editJsonFile ( tutorialsTimestampPath ) ;
33
29
34
- const guidesNewTimestamp = guidesTimestampFile . get ( 'timestamp' ) - 10 ;
35
30
const tutorialNewTimestamp = tutorialsTimestampFile . get ( 'timestamp' ) - 10 ;
36
31
37
- guidesTimestampFile . set ( 'timestamp' , guidesNewTimestamp ) ;
38
- guidesTimestampFile . save ( ) ;
39
32
tutorialsTimestampFile . set ( 'timestamp' , tutorialNewTimestamp ) ;
40
33
tutorialsTimestampFile . save ( ) ;
41
34
@@ -50,7 +43,6 @@ if (fs.existsSync(workingDirectory)) {
50
43
} ) ;
51
44
test ( 'Verify that user can see updated info in Enablement Area' , async t => {
52
45
// Create new file due to cache-ability
53
- const guidesTimestampFileNew = editJsonFile ( guidesTimestampPath ) ;
54
46
const tutorialsTimestampFileNew = editJsonFile ( tutorialsTimestampPath ) ;
55
47
56
48
// Open Workbench page
@@ -70,9 +62,7 @@ if (fs.existsSync(workingDirectory)) {
70
62
await t . expect ( tab . enablementAreaEmptyContent . visible ) . notOk ( 'Tutorials folder is not updated' ) ;
71
63
72
64
// Check that timestamp is new
73
- const actualGuidesTimestamp = await guidesTimestampFileNew . get ( 'timestamp' ) ;
74
65
const actualTutorialTimestamp = await tutorialsTimestampFileNew . get ( 'timestamp' ) ;
75
- await t . expect ( actualGuidesTimestamp ) . notEql ( guidesNewTimestamp , 'Guides timestamp is not updated' ) ;
76
66
await t . expect ( actualTutorialTimestamp ) . notEql ( tutorialNewTimestamp , 'Tutorials timestamp is not updated' ) ;
77
67
} ) ;
78
68
}
0 commit comments