test(tui): refactor tui tests to include tui tests in github actions workflow #45
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
yast/tests
yast/tui
For now, tests written to check and render tui are just written locally and are commented, before pushing on GitHub. The tests fail because BubbleTea can't find a terminal to render on while running an actions workflow. We need to find a way to make these tests run on GitHub actions as well to catch any unwanted behavior before pushing it to the main. We need to find a way to fool bubbletea that it is throwing output on a terminal and convert the output to a byte buffer, hash it using any hashing algorithm. Some functions to hash a string using SHA algo, already exist in the repo. and compare the hash with the desired output's hash, which was stored separately after manually verifying the correct output.
The text was updated successfully, but these errors were encountered: