mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
@@ -3,8 +3,8 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { clickPageMoreActions } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Change page mode(Paper or Edgeless)', () => {
|
||||
test.skip('Switch to edgeless by switch edgeless item', async ({ page }) => {
|
||||
test.describe('Change page mode(Paper or Edgeless)', () => {
|
||||
test('Switch to edgeless by switch edgeless item', async ({ page }) => {
|
||||
const switcher = page.locator('[data-testid=editor-mode-switcher]');
|
||||
const box = await switcher.boundingBox();
|
||||
expect(box?.x).not.toBeUndefined();
|
||||
@@ -35,7 +35,7 @@ test.skip('Change page mode(Paper or Edgeless)', () => {
|
||||
expect(await edgeless.isVisible()).toBe(true);
|
||||
});
|
||||
|
||||
test.skip('Convert to edgeless by editor header items', async ({ page }) => {
|
||||
test('Convert to edgeless by editor header items', async ({ page }) => {
|
||||
await clickPageMoreActions(page);
|
||||
const menusEdgelessItem = page.getByTestId('editor-option-menu-edgeless');
|
||||
await menusEdgelessItem.click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Open contact us', () => {
|
||||
test.describe('Open contact us', () => {
|
||||
test.skip('Click about us', async ({ page }) => {
|
||||
const currentWorkspace = page.getByTestId('current-workspace');
|
||||
await currentWorkspace.click();
|
||||
|
||||
@@ -4,7 +4,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
loadPage();
|
||||
|
||||
// ps aux | grep 8080
|
||||
test.skip('exception page', () => {
|
||||
test.describe('exception page', () => {
|
||||
test('visit 404 page', async ({ page }) => {
|
||||
await page.goto('http://localhost:8080/404');
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
@@ -4,7 +4,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
loadPage();
|
||||
|
||||
// ps aux | grep 8080
|
||||
test.skip('invite code page', () => {
|
||||
test.describe('invite code page', () => {
|
||||
test('the link has expired', async ({ page }) => {
|
||||
await page.goto('http://localhost:8080//invite/abc');
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Layout ui', () => {
|
||||
test.describe('Layout ui', () => {
|
||||
test('Collapse Sidebar', async ({ page }) => {
|
||||
await page.getByTestId('sliderBar-arrowButton').click();
|
||||
const sliderBarArea = page.getByTestId('sliderBar');
|
||||
|
||||
@@ -4,7 +4,7 @@ import { newPage } from './libs/page-logic.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first delete page', () => {
|
||||
test.describe('Local first delete page', () => {
|
||||
test('New a page , then delete it in all pages, permanently delete it', async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first export page', () => {
|
||||
test.describe('Local first export page', () => {
|
||||
test('New a page ,then open it and export html', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await page.getByPlaceholder('Title').click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first favorite and cancel favorite page', () => {
|
||||
test.describe('Local first favorite and cancel favorite page', () => {
|
||||
test('New a page and open it ,then favorite it', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await page.getByPlaceholder('Title').click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first favorite items ui', () => {
|
||||
test.describe('Local first favorite items ui', () => {
|
||||
test('Show favorite items in sidebar', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await page.getByPlaceholder('Title').click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('local first new page', () => {
|
||||
test.describe('local first new page', () => {
|
||||
test('click btn new page', async ({ page }) => {
|
||||
const originPageId = page.url().split('/').reverse()[0];
|
||||
await newPage(page);
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('local first new page', () => {
|
||||
test.describe('local first new page', () => {
|
||||
test('click btn bew page and open in tab', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await page.getByPlaceholder('Title').click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first delete page', () => {
|
||||
test.describe('Local first delete page', () => {
|
||||
test('New a page , then delete it in all pages, restore it', async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first delete page', () => {
|
||||
test.describe('Local first delete page', () => {
|
||||
test('New a page ,then open it and show delete modal', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await page.getByPlaceholder('Title').click();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
import { newPage } from './libs/page-logic.js';
|
||||
loadPage();
|
||||
|
||||
test.skip('Local first trash page', () => {
|
||||
test.describe('Local first trash page', () => {
|
||||
test('New a page , then delete it in all pages, finally find it in trash', async ({
|
||||
page,
|
||||
}) => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Login Flow', () => {
|
||||
test.describe('Login Flow', () => {
|
||||
test.skip('Open login modal by click current workspace', async ({ page }) => {
|
||||
await page.getByTestId('current-workspace').click();
|
||||
await page.waitForTimeout(800);
|
||||
|
||||
@@ -21,7 +21,7 @@ async function assertResultList(page: Page, texts: string[]) {
|
||||
expect(actual).toEqual(texts);
|
||||
}
|
||||
|
||||
test.skip('Open quick search', () => {
|
||||
test.describe('Open quick search', () => {
|
||||
test('Click slider bar button', async ({ page }) => {
|
||||
await newPage(page);
|
||||
const quickSearchButton = page.locator(
|
||||
@@ -50,7 +50,7 @@ test.skip('Open quick search', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test.skip('Add new page in quick search', () => {
|
||||
test.describe('Add new page in quick search', () => {
|
||||
// FIXME: not working
|
||||
test('Create a new page without keyword', async ({ page }) => {
|
||||
await newPage(page);
|
||||
@@ -72,7 +72,7 @@ test.skip('Add new page in quick search', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test.skip('Search and select', () => {
|
||||
test.describe('Search and select', () => {
|
||||
test('Create a new page and search this page', async ({ page }) => {
|
||||
await newPage(page);
|
||||
await openQuickSearchByShortcut(page);
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Shortcuts Modal', () => {
|
||||
test.describe('Shortcuts Modal', () => {
|
||||
test('Open shortcuts modal', async ({ page }) => {
|
||||
const faqIcon = page.locator('[data-testid=faq-icon]');
|
||||
const box = await faqIcon.boundingBox();
|
||||
|
||||
@@ -3,7 +3,7 @@ import { loadPage } from './libs/load-page.js';
|
||||
|
||||
loadPage();
|
||||
|
||||
test.skip('Change Theme', () => {
|
||||
test.describe('Change Theme', () => {
|
||||
test('default white', async ({ page }) => {
|
||||
await page.waitForSelector('html');
|
||||
const root = page.locator('html');
|
||||
|
||||
Reference in New Issue
Block a user