test: test case is added to Open login modal by click cloud-unsync-icon

This commit is contained in:
tzhangchi
2022-12-24 22:44:34 +08:00
parent 90bd753a6c
commit c2c272b3fe
2 changed files with 15 additions and 2 deletions
+10 -1
View File
@@ -4,7 +4,7 @@ import { loadPage } from './libs/load-page';
loadPage();
test.describe('Login Flow', () => {
test('Open Login Modal', async ({ page }) => {
test('Open login modal by click current workspace', async ({ page }) => {
await page.getByTestId('current-workspace').click();
await page.waitForTimeout(800);
// why don't we use waitForSelector, It seems that waitForSelector not stable?
@@ -15,6 +15,15 @@ test.describe('Login Flow', () => {
.click();
});
test('Open login modal by click cloud-unsync-icon', async ({ page }) => {
await page.getByTestId('cloud-unsync-icon').click();
await page.waitForTimeout(800);
await page
.getByRole('heading', { name: 'Currently not logged in' })
.click();
});
test('Open google firebase page', async ({ page }) => {
await page.getByTestId('current-workspace').click();
await page.waitForTimeout(800);