-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support unicode output from commands (#87)
* Support unicode output from commands * Update visual snapshot
- Loading branch information
1 parent
fdd61f1
commit e7c7ec3
Showing
9 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-4.09 KB
(92%)
demo/ui-tests/demo.test.ts-snapshots/visual-test-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
{ | ||
"package": "lua" | ||
}, | ||
{ | ||
"package": "tree" | ||
}, | ||
{ | ||
"package": "vim" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { expect } from '@playwright/test'; | ||
import { shellLineSimple, test } from '../utils'; | ||
|
||
test.describe('tree command', () => { | ||
test('should write version', async ({ page }) => { | ||
const output = await shellLineSimple(page, 'tree --version'); | ||
expect(output).toMatch( | ||
'\r\ntree v2.2.1 © 1996 - 2024 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro\r\n' | ||
); | ||
}); | ||
|
||
test('should write tree', async ({ page }) => { | ||
const output = await shellLineSimple(page, 'tree'); | ||
expect(output).toMatch( | ||
'tree\r\n' + | ||
'.\r\n' + | ||
'├── dirA\r\n' + | ||
'├── file1\r\n' + | ||
'└── file2\r\n' + | ||
'\r\n' + | ||
'2 directories, 2 files\r\n' | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters