Skip to content

Commit bb22651

Browse files
committed
ReadmeChanges
2 parents 10d8b04 + 69c48d5 commit bb22651

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ await page.routeFromHAR('har/personalInfo.har',{update:false});
201201
where `update:false` means to use the existing HAR from from the path given in first paraeter `har/personalInfo.har`, to see this in action you can turn off your internet and run the script, complete webpage is mocked up along with assertions on the browser of your choice this is done using the Network Replay feature and by using our recorded HAR file.
202202
We can use this feature when webpage is down for some reason and we want to test some scenarios.
203203

204-
205-
22. Logging is implemented in `CustomReporterConfig.ts` using winston logger.
204+
22. Logging is implemented in `CustomReporterConfig.ts` using winston logger.
206205

207206
First we have to create a logger object using winston.createLogger and then provid the configuration you need.
208207
First argument is "level" for which i have provided value as "info", in winston logger every logging level is provided with a numeric value, for info the numeric value is 2, so if we provide level as info then all the logs which are equal to or less than info level will be displayed. In our case logs with error(0) and warn(1) wil also be logged. For more info on logging refer below link
@@ -286,4 +285,4 @@ npm run lighthouse
286285
[overall-report-screenshot]: ReadMeImages/OverallReport.PNG
287286
[detailed-report-screenshot]: ReadMeImages/DetailedReport.PNG
288287
[failure-report-screenshot]: ReadMeImages/FailureReport.PNG
289-
[sonar-report-screenshot]: ReadMeImages/SonarReport.PNG
288+
[sonar-report-screenshot]: ReadMeImages/SonarReport.PNG

0 commit comments

Comments
 (0)