chore: bump version (#3567)

This commit is contained in:
Alex Yang
2023-08-04 16:55:28 -07:00
committed by GitHub
parent ea76936508
commit bbf5f0efe0
31 changed files with 410 additions and 379 deletions

View File

@@ -1,17 +1,20 @@
import { test } from '@affine-test/kit/playwright';
import { openHomePage } from '@affine-test/kit/utils/load-page';
import { newPage, waitEditorLoad } from '@affine-test/kit/utils/page-logic';
import {
getBlockSuiteEditorTitle,
newPage,
waitEditorLoad,
} from '@affine-test/kit/utils/page-logic';
import type { Page } from '@playwright/test';
import { expect } from '@playwright/test';
const addDatabase = async (page: Page) => {
await page.keyboard.press('/', { delay: 50 });
await page.keyboard.press('d');
await page.keyboard.press('a');
await page.keyboard.press('t');
await page.keyboard.press('a');
await page.keyboard.press('b');
await page.keyboard.press('a', { delay: 50 });
await page.keyboard.press('Enter', { delay: 50 });
await page.keyboard.press('/', { delay: 500 });
await page.keyboard.press('d', { delay: 500 });
await page.keyboard.press('a', { delay: 500 });
await page.keyboard.press('t', { delay: 500 });
await page.keyboard.press('a', { delay: 500 });
await page.getByTestId('Table View').click();
};
test('database is useable', async ({ page }) => {
@@ -19,7 +22,7 @@ test('database is useable', async ({ page }) => {
await waitEditorLoad(page);
await newPage(page);
await waitEditorLoad(page);
const title = page.locator('.affine-default-page-block-title');
const title = await getBlockSuiteEditorTitle(page);
await title.type('test title');
await page.keyboard.press('Enter');
expect(await title.innerText()).toBe('test title');
@@ -30,7 +33,7 @@ test('database is useable', async ({ page }) => {
await waitEditorLoad(page);
await newPage(page);
await waitEditorLoad(page);
const title2 = page.locator('.affine-default-page-block-title');
const title2 = await getBlockSuiteEditorTitle(page);
title2.type('test title2');
await page.waitForTimeout(500);
expect(await title2.innerText()).toBe('test title2');
@@ -45,13 +48,13 @@ test('link page is useable', async ({ page }) => {
await waitEditorLoad(page);
await newPage(page);
await waitEditorLoad(page);
const title = page.locator('.affine-default-page-block-title');
const title = await getBlockSuiteEditorTitle(page);
await title.type('page1');
await page.keyboard.press('Enter');
expect(await title.innerText()).toBe('page1');
await newPage(page);
await waitEditorLoad(page);
const title2 = page.locator('.affine-default-page-block-title');
const title2 = await getBlockSuiteEditorTitle(page);
await title2.type('page2');
await page.keyboard.press('Enter');
expect(await title2.innerText()).toBe('page2');