Merge pull request #712 from toeverything/chore/update-Copyright-year

chore: update copyright year
This commit is contained in:
DarkSky
2023-01-11 18:09:28 +08:00
committed by GitHub
4 changed files with 12 additions and 8 deletions

View File

@@ -76,6 +76,8 @@ export const ContactModal = ({
link: 'https://community.affine.pro', link: 'https://community.affine.pro',
}, },
]; ];
const date = new Date();
const year = date.getFullYear();
return ( return (
<Modal open={open} onClose={onClose} data-testid="contact-us-modal-content"> <Modal open={open} onClose={onClose} data-testid="contact-us-modal-content">
<ModalWrapper <ModalWrapper
@@ -135,7 +137,7 @@ export const ContactModal = ({
{t('How is AFFiNE Alpha different?')} {t('How is AFFiNE Alpha different?')}
</a> </a>
</p> </p>
<p>Copyright &copy; 2022 Toeverything</p> <p>Copyright &copy; {year} Toeverything</p>
</StyledModalFooter> </StyledModalFooter>
</ModalWrapper> </ModalWrapper>
</Modal> </Modal>

View File

@@ -11,7 +11,6 @@ import { getWarningMessage, shouldShowWarning } from './utils';
import EditorOptionMenu from './header-right-items/EditorOptionMenu'; import EditorOptionMenu from './header-right-items/EditorOptionMenu';
import TrashButtonGroup from './header-right-items/TrashButtonGroup'; import TrashButtonGroup from './header-right-items/TrashButtonGroup';
import ThemeModeSwitch from './header-right-items/theme-mode-switch'; import ThemeModeSwitch from './header-right-items/theme-mode-switch';
import SyncUser from './header-right-items/SyncUser';
const BrowserWarning = ({ const BrowserWarning = ({
show, show,

View File

@@ -5,9 +5,12 @@ export async function newPage(page: Page) {
} }
export async function clickPageMoreActions(page: Page) { export async function clickPageMoreActions(page: Page) {
return page return (
.getByTestId('editor-header-items') page
.getByRole('button') .getByTestId('editor-header-items')
.nth(2) .getByRole('button')
.click(); //FIXME: temporary change due to cloud sync icon being hidden
.nth(1)
.click()
);
} }

View File

@@ -15,7 +15,7 @@ test.describe('Login Flow', () => {
.click(); .click();
}); });
test('Open login modal by click cloud-unsync-icon', async ({ page }) => { test.skip('Open login modal by click cloud-unsync-icon', async ({ page }) => {
await page.getByTestId('cloud-unsync-icon').click(); await page.getByTestId('cloud-unsync-icon').click();
await page.waitForTimeout(800); await page.waitForTimeout(800);