Closed quockhanh closed 1 year ago
Should create multiple PR to fix separated/detailed issues Or we can split this ticket into small ones
Problem 1: done, tested successfully Problem 2: done, tested successfully Problem 3: ignored Problem 4: the display of run-test.log looks ok to me on my Windows 11 machine
Step to reproduce:
Actual: When the tests done, we see new browser tab which show test results and the run-tests dialog is still running (see image)
Expectation:
Problem 1: The run-test dialog should stop running, then turn to 'Done' mode (see attachment, as .NET project) Problem 2:
test-runs/xxxx
folder should contains following information:.code-metadata
(BLUE highlight): should copy this file fromoutput-code
folder to thistest-run/xxx
folder. Because each test-run can base on different built-code. Keep this file here let us know the metadata of built-code relates to this runtest-result.html
file (GREEN highlight): Please save test result (what you see in browser tab) to a file, under thistest-run/xxx
. It may be a*.html
file (we can change later), then ensure IDE can view this file via a component, likeHtmlViewer
(just example). Please ensure if user clicksView Result
link at Run-Test dialog, then we open new IDE tab to show test resultrun-test.log
file (RED highlight): If there is log for testing process, please write into this file - (See below problem 4)IMPORTANT UPDATE: If you choose a test case which uses test routine, something wrong during test run process, which keeps run-test dialog still runing (problem 1), and application wont save files (problem 2). I think that is root cause (issue #181), please fix
Problem 3: After getting
test-result.html
file, we then see it in dark-mode (in Ubuntu environment, useHtmlViewer.svelte
).IMPORTANT UPDATE: Let's ignore this one now. The root cause is it bases on Ubuntu (OS) settings (see image). Inside playwright's
test-result.html
, there are built-in (generated) css forprefer-color-scheme
, and it's used based on environment setting (dark or light theme). Forcingtest-result.html
display in light mode is not a great choice. Ideally, our app should follow OS theme settingProblem 4: Research how to fix
run-test.log
to remove or display strange character(Please check the teminal / console windows for raw text. Maybe should look at encode/decode?)