Clarify homepage arithmetic and include code and link labels in full-text search
This commit is contained in:
1 parent
d0fd7068bb
commit
4a0d828ef0
5 files changed
+24
-14
No files matched your search
@@ -7,6 +7,8 @@ async page => {
|
||||
await page.goto(base+'/library');
|
||||
await page.locator('#library-query').fill('GPS');
|
||||
let count=await page.locator('.search-results>a').count();check('full body search GPS',count>0,count);
|
||||
await page.locator('#library-query').fill('5 кадров/с × (10 с до + 10 с после) = 100 кадров');check('code block indexed',await page.locator('.search-results a[href="/system"]').count()===1);
|
||||
await page.locator('#library-query').fill('Подключение СВК-007 — ролик СВК-Лаб (YouTube)');check('link anchor indexed',await page.locator('.search-results a[href="/demo.shtml"]').count()===1);
|
||||
await page.locator('#library-query').fill('невозможныйзапрос98765');check('unknown search empty',await page.locator('.empty').isVisible(),await page.locator('.result-count').innerText());
|
||||
await page.getByRole('button',{name:'Показать все материалы'}).click();count=await page.locator('.search-results>a').count();check('reset all articles',count>=27,count);
|
||||
const category=await page.locator('#library-category option').nth(1).textContent();await page.locator('#library-category').selectOption({label:category});const kinds=await page.locator('.search-kind').allTextContents();check('category filter',kinds.length>0&&kinds.every(k=>k.includes(category)),{category,kinds});
|
||||
|
||||
Reference in new issue
Block a user