mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
chore: replace all "favourite" with "favorite" (#927)
This commit is contained in:
@@ -43,7 +43,7 @@ test.describe('Local first delete page', () => {
|
||||
// show empty tip
|
||||
expect(
|
||||
page.getByText(
|
||||
'Tips: Click Add to Favourites/Trash and the page will appear here.'
|
||||
'Tips: Click Add to Favorites/Trash and the page will appear here.'
|
||||
)
|
||||
).not.toBeUndefined();
|
||||
});
|
||||
|
||||
@@ -21,7 +21,7 @@ test.describe('Local first export page', () => {
|
||||
await cell.click();
|
||||
await clickPageMoreActions(page);
|
||||
const exportParentBtn = page.getByRole('tooltip', {
|
||||
name: 'Add to favourites Convert to Edgeless Export Delete',
|
||||
name: 'Add to favorites Convert to Edgeless Export Delete',
|
||||
});
|
||||
await exportParentBtn.click();
|
||||
const [download] = await Promise.all([
|
||||
@@ -48,7 +48,7 @@ test.describe('Local first export page', () => {
|
||||
await cell.click();
|
||||
await clickPageMoreActions(page);
|
||||
const exportParentBtn = page.getByRole('tooltip', {
|
||||
name: 'Add to favourites Convert to Edgeless Export Delete',
|
||||
name: 'Add to favorites Convert to Edgeless Export Delete',
|
||||
});
|
||||
await exportParentBtn.click();
|
||||
const [download] = await Promise.all([
|
||||
|
||||
@@ -37,7 +37,7 @@ test.describe('Local first favorite and cancel favorite page', () => {
|
||||
await favoriteBtn.click();
|
||||
|
||||
// expect it in favorite list
|
||||
await page.getByRole('link', { name: 'Favourites' }).click();
|
||||
await page.getByRole('link', { name: 'Favorites' }).click();
|
||||
expect(
|
||||
page.getByRole('cell', { name: 'this is a new page to favorite' })
|
||||
).not.toBeUndefined();
|
||||
@@ -52,13 +52,13 @@ test.describe('Local first favorite and cancel favorite page', () => {
|
||||
//hover table record
|
||||
await page.mouse.move((box?.x ?? 0) + 10, (box?.y ?? 0) + 10);
|
||||
|
||||
await page.getByTestId('favourited-icon').click();
|
||||
await page.getByTestId('favorited-icon').click();
|
||||
|
||||
// expect it not in favorite list
|
||||
await page.getByRole('link', { name: 'Favourites' }).click();
|
||||
await page.getByRole('link', { name: 'Favorites' }).click();
|
||||
expect(
|
||||
page.getByText(
|
||||
'Tips: Click Add to Favourites/Trash and the page will appear here.'
|
||||
'Tips: Click Add to Favorites/Trash and the page will appear here.'
|
||||
)
|
||||
).not.toBeUndefined();
|
||||
});
|
||||
|
||||
@@ -43,7 +43,7 @@ test.describe('Local first favorite items ui', () => {
|
||||
const favoriteBtn = page.getByTestId('editor-option-menu-favorite');
|
||||
await favoriteBtn.click();
|
||||
|
||||
await page.getByRole('link', { name: 'Favourites' }).click();
|
||||
await page.getByRole('link', { name: 'Favorites' }).click();
|
||||
expect(
|
||||
page.getByRole('cell', { name: 'this is a new page to favorite' })
|
||||
).not.toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user