mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 10:45:57 +08:00
fix: disable set-db-location step (#4263)
This commit is contained in:
@@ -290,11 +290,7 @@ export const CreateWorkspaceModal = ({
|
|||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
} else if (mode === 'new') {
|
} else if (mode === 'new') {
|
||||||
setStep(
|
setStep('name-workspace');
|
||||||
environment.isDesktop && runtimeConfig.enableSQLiteProvider
|
|
||||||
? 'set-db-location'
|
|
||||||
: 'name-workspace'
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
setStep(undefined);
|
setStep(undefined);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,9 +156,6 @@ test('windows only check', async ({ page }) => {
|
|||||||
test('delete workspace', async ({ page }) => {
|
test('delete workspace', async ({ page }) => {
|
||||||
await page.getByTestId('current-workspace').click();
|
await page.getByTestId('current-workspace').click();
|
||||||
await page.getByTestId('new-workspace').click();
|
await page.getByTestId('new-workspace').click();
|
||||||
await page.getByTestId('create-workspace-default-location-button').click({
|
|
||||||
delay: 100,
|
|
||||||
});
|
|
||||||
await page.getByTestId('create-workspace-input').type('Delete Me', {
|
await page.getByTestId('create-workspace-input').type('Delete Me', {
|
||||||
delay: 100,
|
delay: 100,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import fs from 'fs-extra';
|
|||||||
import type { ElectronApplication } from 'playwright';
|
import type { ElectronApplication } from 'playwright';
|
||||||
import { _electron as electron } from 'playwright';
|
import { _electron as electron } from 'playwright';
|
||||||
|
|
||||||
|
import { removeWithRetry } from '../tests/utils';
|
||||||
|
|
||||||
function generateUUID() {
|
function generateUUID() {
|
||||||
return crypto.randomUUID();
|
return crypto.randomUUID();
|
||||||
}
|
}
|
||||||
@@ -102,7 +104,7 @@ export const test = base.extend<{
|
|||||||
});
|
});
|
||||||
await use(electronApp);
|
await use(electronApp);
|
||||||
try {
|
try {
|
||||||
await fs.rm(clonedDist, { recursive: true, force: true });
|
await removeWithRetry(clonedDist);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../../tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "./lib",
|
|
||||||
"baseUrl": ".",
|
|
||||||
"target": "ESNext"
|
|
||||||
},
|
|
||||||
"references": [{ "path": "../../../tests/kit" }],
|
|
||||||
"include": ["**.spec.ts", "**.test.ts", "fixture.ts"],
|
|
||||||
"exclude": ["lib"]
|
|
||||||
}
|
|
||||||
@@ -33,9 +33,6 @@
|
|||||||
{
|
{
|
||||||
"path": "./tsconfig.node.json"
|
"path": "./tsconfig.node.json"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "./e2e/tsconfig.json"
|
|
||||||
},
|
|
||||||
{ "path": "../../tests/kit" }
|
{ "path": "../../tests/kit" }
|
||||||
],
|
],
|
||||||
"ts-node": {
|
"ts-node": {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true
|
"composite": true
|
||||||
},
|
},
|
||||||
"include": ["**/__tests__/**/*", "./tests"],
|
"include": ["**/__tests__/**/*", "./tests", "./e2e"],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{
|
||||||
"path": "./tsconfig.json"
|
"path": "./tsconfig.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user