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
commit 724ad7dee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 8 deletions

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@ test.describe('Login Flow', () => {
.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.waitForTimeout(800);