feat: support get datasource status (#3645)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-08-10 05:05:34 +00:00
1 parent 05144abd6a
commit dafd5619e6
34 files changed
+836 -46

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { test } from '@affine-test/kit/playwright';
import { openPrototypeProviderStatusPage } from '@affine-test/kit/utils/load-page';
import { expect } from '@playwright/test';
test('syncing and synced status should works', async ({ page }) => {
await openPrototypeProviderStatusPage(page);
await expect(page.getByTestId('status')).toHaveText('synced');
await page.getByTestId('start-button').click();
await expect(page.getByTestId('status')).toHaveText('syncing');
await page.getByTestId('stop-button').click();
await expect(page.getByTestId('status')).toHaveText('synced');
});