mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-21 10:01:43 +03:00
fix(server): image action behavior in ci (#9077)
This commit is contained in:
parent
ec140da0d9
commit
4d44bcc145
@ -38,7 +38,7 @@ export class CopilotStorage {
|
|||||||
) {
|
) {
|
||||||
const name = `${userId}/${workspaceId}/${key}`;
|
const name = `${userId}/${workspaceId}/${key}`;
|
||||||
await this.provider.put(name, blob);
|
await this.provider.put(name, blob);
|
||||||
if (this.config.node.dev) {
|
if (this.config.node.dev || this.config.node.test) {
|
||||||
// return image base64url for dev environment
|
// return image base64url for dev environment
|
||||||
return `data:image/png;base64,${blob.toString('base64')}`;
|
return `data:image/png;base64,${blob.toString('base64')}`;
|
||||||
}
|
}
|
||||||
|
@ -486,15 +486,14 @@ test.describe('chat with block', () => {
|
|||||||
.then(b => b.click());
|
.then(b => b.click());
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO(@darkskygit): not work on ci
|
test('explain this image', async ({ page }) => {
|
||||||
test.skip('explain this image', async ({ page }) => {
|
|
||||||
await page
|
await page
|
||||||
.waitForSelector('.ai-item-explain-this-image')
|
.waitForSelector('.ai-item-explain-this-image')
|
||||||
.then(i => i.click());
|
.then(i => i.click());
|
||||||
expect(await collectTextAnswer(page)).toBeTruthy();
|
expect(await collectTextAnswer(page)).toBeTruthy();
|
||||||
});
|
});
|
||||||
// TODO(@darkskygit): not work on ci
|
|
||||||
test.skip('generate a caption', async ({ page }) => {
|
test('generate a caption', async ({ page }) => {
|
||||||
await page
|
await page
|
||||||
.waitForSelector('.ai-item-generate-a-caption')
|
.waitForSelector('.ai-item-generate-a-caption')
|
||||||
.then(i => i.click());
|
.then(i => i.click());
|
||||||
|
Loading…
Reference in New Issue
Block a user