This commit is contained in:
an-lee
2024-03-04 08:59:36 +08:00
parent eb1fb0bb47
commit 4b74111b1e
3 changed files with 10 additions and 3 deletions

View File

@@ -58,6 +58,5 @@ jobs:
path: |
enjoy/out/make/**/*.deb
enjoy/out/make/**/*.rpm
enjoy/out/make/**/*.zip
enjoy/out/make/**/*.exe
enjoy/out/make/**/*.dmg

View File

@@ -39,6 +39,5 @@ jobs:
path: |
enjoy/out/make/**/*.deb
enjoy/out/make/**/*.rpm
enjoy/out/make/**/*.zip
enjoy/out/make/**/*.exe
enjoy/out/make/**/*.dmg

View File

@@ -67,6 +67,15 @@ test.describe("with login", async () => {
});
});
page.route("**/api/stories", (route) => {
route.fulfill({
json: {
stories: [],
next: null,
},
});
});
await page.evaluate(() => {
return (window as any).__ENJOY_APP__.app.reload();
});
@@ -84,7 +93,7 @@ test.describe("with login", async () => {
});
test.describe("with conversation", async () => {
test.beforeEach(async () => {
test.beforeAll(async () => {
const file = fs.readFileSync(
path.join(process.cwd(), "samples", "speech.mp3")
);