mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: strict eslint check (#1084)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { clickPageMoreActions } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Change page mode(Paper or Edgeless)', () => {
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
const pkgPath = path.join(__dirname, '../apps/web/package.json');
|
||||
const record = fs.readFileSync(pkgPath, 'utf8');
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { test } from '@playwright/test';
|
||||
import type { Page } from '@playwright/test';
|
||||
import { test } from '@playwright/test';
|
||||
|
||||
interface IType {
|
||||
page: Page;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { test as baseTest } from '@playwright/test';
|
||||
import crypto from 'node:crypto';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import process from 'node:process';
|
||||
import crypto from 'node:crypto';
|
||||
|
||||
import { test as baseTest } from '@playwright/test';
|
||||
|
||||
const istanbulTempDir = process.env.ISTANBUL_TEMP_DIR
|
||||
? path.resolve(process.env.ISTANBUL_TEMP_DIR)
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic';
|
||||
import { clickPageMoreActions, newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first export page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic';
|
||||
import { clickPageMoreActions, newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first favorite and cancel favorite page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic';
|
||||
import { clickPageMoreActions, newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first favorite items ui', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('local first new page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('local first new page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first delete page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage, clickPageMoreActions } from './libs/page-logic';
|
||||
import { clickPageMoreActions, newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first delete page', () => {
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
test.describe('Local first trash page', () => {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
import { createWorkspace } from './libs/workspace-logic';
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { test } from './libs/playwright';
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { expect, type Page } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
import { loadPage } from './libs/load-page';
|
||||
|
||||
import { withCtrlOrMeta } from './libs/keyboard';
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { newPage } from './libs/page-logic';
|
||||
import { test } from './libs/playwright';
|
||||
loadPage();
|
||||
|
||||
const openQuickSearchByShortcut = async (page: Page) =>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { expect } from '@playwright/test';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
import { loadPage } from './libs/load-page';
|
||||
import { test } from './libs/playwright';
|
||||
|
||||
loadPage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user