feat(electron): enable disable cloud alert (#2184)

This commit is contained in:
Himself65
2023-04-28 01:26:14 -05:00
committed by GitHub
parent 70fbbb39c1
commit 73d5b2081a
5 changed files with 58 additions and 7 deletions

View File

@@ -21,3 +21,21 @@ test('new page', async () => {
expect(flavour).toBe('local');
await electronApp.close();
});
test('affine cloud disabled', async () => {
const electronApp = await electron.launch({
args: [resolve(__dirname, '..')],
executablePath: resolve(__dirname, '../node_modules/.bin/electron'),
});
const page = await electronApp.firstWindow();
await page.getByTestId('new-page-button').click({
delay: 100,
});
await page.waitForSelector('v-line');
await page.getByTestId('current-workspace').click();
await page.getByTestId('sign-in-button').click();
await page.getByTestId('disable-affine-cloud-modal').waitFor({
state: 'visible',
});
await electronApp.close();
});