Conectar: Configuración and Avanzado tabs, rows instead of JSON, field titles as keys, captions that fit their nodes
This commit is contained in:
+17
-5
@@ -102,12 +102,18 @@ test('conectar: open the hospital pipeline, preview a source, run it to success'
|
||||
await page.goto('/conectar');
|
||||
await page.getByText('cacu', { exact: true }).click();
|
||||
await expect(page.locator('vflow')).toBeVisible();
|
||||
await page.getByText('Fuente de datos · Patients').click();
|
||||
await expect(page.locator('formly-form')).toBeVisible(); // drawn by hand: its raw form
|
||||
// a node's caption: its kind, then its name
|
||||
await page.locator('.node-caption', { hasText: 'Pacientes' }).click();
|
||||
// drawn from a fixture, read back as a guided SQLite source: the dialog edits it
|
||||
await expect(page.getByRole('button', { name: 'Editar conexión' })).toBeVisible();
|
||||
await page.getByRole('button', { name: 'Vista previa' }).click();
|
||||
await expect(page.locator('.preview tr[mat-row]').first()).toBeVisible();
|
||||
// A map node shows the site's codes in platform terms (its ConceptMap), editable as rows.
|
||||
await page.getByText('Traducir códigos · cytology', { exact: true }).click();
|
||||
await page;
|
||||
await page
|
||||
.locator('.node-caption', { hasText: 'Traducir códigos' })
|
||||
.filter({ has: page.locator('.name', { hasText: /^Citología$/ }) })
|
||||
.click();
|
||||
await expect(page.getByRole('heading', { name: /^Códigos del sitio/ })).toBeVisible();
|
||||
await expect
|
||||
.poll(() =>
|
||||
@@ -146,7 +152,7 @@ test('gobernanza: a version with its reports, its curves, and promotion refused
|
||||
await version.getByRole('button', { name: 'Ver gráficas' }).click();
|
||||
await expect(page.locator('app-plot .plot svg').first()).toBeVisible();
|
||||
await version.getByRole('button', { name: 'Promover' }).click();
|
||||
await expect(page.getByText('No se promovió')).toContainText('clinical_validation');
|
||||
await expect(page.getByText('No se promovió')).toContainText('Validación clínica');
|
||||
expect(problems.filter((p) => !p.includes('409'))).toEqual([]);
|
||||
});
|
||||
|
||||
@@ -172,7 +178,7 @@ test('conectar: someone who knows nothing of databases connects the SQL Server w
|
||||
await expect(page.getByText(/(Las primeras \d+ filas|La primera fila):/)).toBeVisible();
|
||||
await page.getByLabel('Nombre de esta fuente').fill('Resultados');
|
||||
await page.getByRole('button', { name: 'Guardar', exact: true }).last().click();
|
||||
await expect(page.getByText('Fuente de datos · Resultados')).toBeVisible();
|
||||
await expect(page.locator('.node-caption', { hasText: 'Resultados' })).toBeVisible();
|
||||
// A wrong password says so in words, not a stack trace.
|
||||
await page.getByRole('button', { name: 'Editar conexión' }).click();
|
||||
await page.locator('[data-field="password"]').fill('not-it');
|
||||
@@ -323,6 +329,12 @@ for (const width of [1440, 820]) {
|
||||
}
|
||||
await page.goto('/conectar');
|
||||
await check('conectar');
|
||||
// a pipeline open, a node chosen, in both of its panel's tabs
|
||||
await page.locator('.pipelines [mat-list-item]').first().click();
|
||||
await page.locator('.node-caption').first().dispatchEvent('click'); // the canvas may draw it off-screen
|
||||
await check('conectar node');
|
||||
await page.getByRole('tab', { name: 'Avanzado' }).click();
|
||||
await check('conectar node, advanced');
|
||||
await page.goto('/revision');
|
||||
const tabs = page.locator('.mdc-tab');
|
||||
for (let i = 0; i < (await tabs.count()); i++) {
|
||||
|
||||
Reference in New Issue
Block a user