mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
2 years ago
|
import { expect, test } from '@playwright/test';
|
||
|
import { DashboardPage } from '../pages/Dashboard';
|
||
|
import { LoginPage } from '../pages/LoginPage';
|
||
|
import { ProjectsPage } from '../pages/ProjectsPage';
|
||
2 years ago
|
import { quickVerify } from './commonTest';
|
||
2 years ago
|
import { NcContext } from '../setup';
|
||
2 years ago
|
|
||
2 years ago
|
test.describe('Quick tests', () => {
|
||
2 years ago
|
let dashboard: DashboardPage;
|
||
|
|
||
2 years ago
|
test('Quick tests test', async ({ page }) => {
|
||
2 years ago
|
const loginPage = new LoginPage(page);
|
||
|
await loginPage.goto();
|
||
2 years ago
|
await loginPage.fillEmail({ email: 'user@nocodb.com', withoutPrefix: true });
|
||
|
await loginPage.fillPassword('Password123.');
|
||
2 years ago
|
await loginPage.submit();
|
||
|
|
||
|
const projectsPage = new ProjectsPage(page);
|
||
2 years ago
|
const project = await projectsPage.openProject({ title: 'sample', withoutPrefix: true });
|
||
2 years ago
|
dashboard = new DashboardPage(page, project);
|
||
2 years ago
|
|
||
2 years ago
|
const context: NcContext = {
|
||
|
project,
|
||
|
token: '',
|
||
2 years ago
|
dbType: (process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE) || 'mysql',
|
||
|
};
|
||
|
await quickVerify({ dashboard, context });
|
||
2 years ago
|
});
|
||
|
});
|