chore: replace all "favourite" with "favorite" (#927)

This commit is contained in:
JimmFly
2023-02-09 15:46:59 +08:00
committed by GitHub
parent 2fd4dc5201
commit 718322ec65
13 changed files with 32 additions and 32 deletions

View File

@@ -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();
});

View File

@@ -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([

View File

@@ -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();
});

View File

@@ -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();