Spaces:
Paused
Paused
Sync GitHub main a37188f9a62acf7a90bbe8ac7a45f6f8f175c2c9 (part 2)
Browse filesFiles changed (4)
293 unmodified lines294295296297298299300293 unmodified linesawait selectRoute(page, "release", "science");await expect(page.locator("#scientific-progress-timeline")).toBeVisible();await expect(page.locator("#scientific-progress-timeline")).toContainText("Wissenschaftliche Timeline");await selectRoute(page, "release", "development");await expect(page.locator("#development-timeline-track .dev-node-marker-tech")).toContainText("hier");293 unmodified lines294295296297298299300293 unmodified linesawait selectRoute(page, "release", "science");await expect(page.locator("#scientific-progress-timeline")).toBeVisible();await expect(page.locator("#scientific-progress-timeline")).toContainText("Scientific Timeline");await selectRoute(page, "release", "development");await expect(page.locator("#development-timeline-track .dev-node-marker-tech")).toContainText("hier");
15 unmodified lines16171819202115 unmodified linesawait expect(page.locator('.research-rq-card')).toHaveCount(1);await page.locator('.research-rq-card').click();await expect(page.locator('#workflow-research-results')).toContainText('OPERATIONAL');await page.locator('#workflow-research-operational').check();await expect(page.locator('.research-rq-card')).toHaveCount(1);await page.locator('#workflow-research-operational').uncheck();15 unmodified lines161718192021222315 unmodified linesawait expect(page.locator('.research-rq-card')).toHaveCount(1);await page.locator('.research-rq-card').click();await expect(page.locator('#workflow-research-results')).toContainText('OPERATIONAL');await page.locator('#workflow-research-detail-close').click();await expect(page.locator('#workflow-research-detail')).toBeHidden();await page.locator('#workflow-research-operational').check();await expect(page.locator('.research-rq-card')).toHaveCount(1);await page.locator('#workflow-research-operational').uncheck();
6 unmodified lines7891011121314151617181920216 unmodified linesawait expect(page).toHaveTitle(/MHRN/);await expect(page.locator('.project-title')).toHaveText('Multi-Scale Homeostatic Recurrence Network');await expect(page.locator('.project-subtitle')).toHaveText('Mehrskaliges homöostatisches Rekurrenznetzwerk');await expect(page.locator('.project-title')).toBeVisible();await expect(page.locator('.project-subtitle')).toBeVisible();const title = await page.locator('.project-title').boundingBox();const subtitle = await page.locator('.project-subtitle').boundingBox();expect(title).not.toBeNull();expect(subtitle).not.toBeNull();expect(title.x).toBeGreaterThanOrEqual(0);expect(title.x + title.width).toBeLessThanOrEqual(width);expect(subtitle.y).toBeGreaterThanOrEqual(title.y + title.height);await page.screenshot({ path: testInfo.outputPath(`mhrn-${width}.png`), fullPage: true });});}6 unmodified lines789101112131415161718192021222324252627286 unmodified linesawait expect(page).toHaveTitle(/MHRN/);await expect(page.locator('.project-title')).toHaveText('Multi-Scale Homeostatic Recurrence Network');await expect(page.locator('.project-subtitle')).toHaveText('Mehrskaliges homöostatisches Rekurrenznetzwerk');await expect(page.locator('body')).toHaveAttribute('data-ui-language', 'en');await expect(page.locator('.project-title')).toBeVisible();await expect(page.locator('.project-subtitle')).toBeHidden();const title = await page.locator('.project-title').boundingBox();expect(title).not.toBeNull();expect(title.x).toBeGreaterThanOrEqual(0);expect(title.x + title.width).toBeLessThanOrEqual(width);await page.locator('[data-mhrn-language="de"]').click();await expect(page.locator('body')).toHaveAttribute('data-ui-language', 'de');await expect(page.locator('.project-title')).toBeHidden();await expect(page.locator('.project-subtitle')).toBeVisible();const subtitle = await page.locator('.project-subtitle').boundingBox();expect(subtitle).not.toBeNull();expect(subtitle.x).toBeGreaterThanOrEqual(0);expect(subtitle.x + subtitle.width).toBeLessThanOrEqual(width);await page.screenshot({ path: testInfo.outputPath(`mhrn-${width}.png`), fullPage: true });});}
51 unmodified lines52535455565758596061626351 unmodified linesawait expect(portalLinks.locator('[data-portal="hf-source"]')).toHaveAttribute('href', 'https://huggingface.co/ThomasHeisig/MHRN');await expect(portalLinks.locator('[data-portal="hf-space"]')).toHaveAttribute('href', 'https://huggingface.co/spaces/ThomasHeisig/MHRN-Space');await expect(portalLinks.locator('[data-portal="hf-data"]')).toHaveAttribute('href', 'https://huggingface.co/datasets/ThomasHeisig/MHRN-Research-Data');const readerLink = publicationPanel.locator('a[data-pub-reader-link]').first();await expect(readerLink).toBeVisible();const readerHref = await readerLink.getAttribute('href');expect(readerHref).toBeTruthy();expect(readerHref).not.toBe('#');expect(readerHref).toContain('/api/files/raw/');const prefix = `http://127.0.0.1:${port}/api/files/preview/`;const catalogue = JSON.parse((await (await page.request.get(prefix + encodeURIComponent('publications/catalog.json') + '?source=research')).json()).content);51 unmodified lines525354555657585960616251 unmodified linesawait expect(portalLinks.locator('[data-portal="hf-source"]')).toHaveAttribute('href', 'https://huggingface.co/ThomasHeisig/MHRN');await expect(portalLinks.locator('[data-portal="hf-space"]')).toHaveAttribute('href', 'https://huggingface.co/spaces/ThomasHeisig/MHRN-Space');await expect(portalLinks.locator('[data-portal="hf-data"]')).toHaveAttribute('href', 'https://huggingface.co/datasets/ThomasHeisig/MHRN-Research-Data');const readerLink = publicationPanel.locator('[data-pub-reader-link]').first();await expect(readerLink).toBeVisible();const readerPath = await readerLink.getAttribute('data-pub-reader-link');expect(readerPath).toBeTruthy();expect(readerPath).toContain('.md');const prefix = `http://127.0.0.1:${port}/api/files/preview/`;const catalogue = JSON.parse((await (await page.request.get(prefix + encodeURIComponent('publications/catalog.json') + '?source=research')).json()).content);
tests/browser/dashboard.spec.js+1-1
tests/browser/fullstack.spec.js+2
tests/browser/naming.spec.js+11-4
tests/browser/publication.spec.js+4-5