AFFiNE/tests/parallels/contact-us.spec.ts

20 lines
749 B
TypeScript
Raw Normal View History

import { test } from '@affine-test/kit/playwright';
2023-02-05 13:41:18 +03:00
import { expect } from '@playwright/test';
2023-02-17 10:33:32 +03:00
import { openHomePage } from '../libs/load-page';
2023-03-28 08:25:16 +03:00
import { waitMarkdownImported } from '../libs/page-logic';
2022-11-28 16:17:34 +03:00
test('Click right-bottom corner contact icon', async ({ page }) => {
await openHomePage(page);
await waitMarkdownImported(page);
await page.locator('[data-testid=help-island]').click();
const rightBottomContactUs = page.locator(
'[data-testid=right-bottom-contact-us-icon]'
);
expect(await rightBottomContactUs.isVisible()).toEqual(true);
2022-11-28 16:17:34 +03:00
await rightBottomContactUs.click();
const contactUsModal = page.locator('[data-testid=contact-us-modal-content]');
await expect(contactUsModal).toContainText('Check Our Docs');
2022-11-28 16:17:34 +03:00
});