mirror of
https://github.com/hanzoai/studio-desktop.git
synced 2026-10-30 18:21:16 +00:00
* [e2e] Always dispose temp dir * [e2e] Screenshot entire desktop on close failure * nit
18 lines
700 B
TypeScript
18 lines
700 B
TypeScript
import { pathExists } from '../shared/utils';
|
|
import { TestEnvironment } from './testEnvironment';
|
|
import { assertPlaywrightEnabled, expect, test as teardown } from './testExtensions';
|
|
|
|
// This "test" is a setup process.
|
|
// After running, the test environment should be completely uninstalled.
|
|
|
|
teardown('Completely uninstalls the app', async ({}) => {
|
|
assertPlaywrightEnabled();
|
|
|
|
const testEnvironment = new TestEnvironment();
|
|
await testEnvironment.deleteAppData();
|
|
await testEnvironment.deleteDefaultInstallLocation();
|
|
|
|
await expect(pathExists(testEnvironment.appDataDir)).resolves.toBeFalsy();
|
|
await expect(pathExists(testEnvironment.defaultInstallLocation)).resolves.toBeFalsy();
|
|
});
|