memories/e2e/folders.spec.ts

15 lines
447 B
TypeScript
Raw Normal View History

2022-09-14 18:18:57 +00:00
import { test, expect } from '@playwright/test';
import { login } from './login';
test.beforeEach(login('/folders'));
test.describe('Open', () => {
test('Look for Folders', async ({ page }) => {
2022-09-16 03:31:21 +00:00
expect(await page.locator('.big-icon').count(), 'Number of folders').toBe(2);
2022-09-14 18:18:57 +00:00
});
test('Open folder', async ({ page }) => {
await page.locator('text=Local').click();
await page.waitForSelector('img[src*="core/preview"]');
2022-09-14 18:18:57 +00:00
});
});