Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
Build and deploy / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
99c848189e
commit
12562baeb5
2040 files changed
+184656
-181
No files matched your search
@@ -0,0 +1,10 @@
|
||||
### Result
|
||||
{"articlePlain":13239,"figures":2}
|
||||
### Ran Playwright code
|
||||
```js
|
||||
await (async(page)=>{await page.goto('http://127.0.0.1:54623/?designer=detail5#article');await page.locator('#theme').selectOption('light');await page.setViewportSize({width:1440,height:1000});await page.waitForTimeout(100);await page.evaluate(()=>window.scrollTo(0,0));await page.screenshot({path:'/tmp/progcode-concept-v3/article-header-light.png'});await page.locator('#body h2').nth(1).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/article-middle-light.png'});await page.locator('#body').evaluate(el=>window.scrollTo(0,el.getBoundingClientRect().bottom+scrollY-innerHeight));await page.screenshot({path:'/tmp/progcode-concept-v3/article-end-light.png'});await page.goto('http://127.0.0.1:54623/#kit');await page.locator('.spec').filter({has:page.getByRole('heading',{name:'Таблица / CTFE / 26.05.2017'})}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-table-code-light.png'});await page.getByText('Открыть полный исходник и unittest',{exact:true}).click();await page.getByRole('heading',{name:'Полный D-модуль / 17.06.2017'}).scrollIntoViewIfNeeded();await page.screenshot({path:'/tmp/progcode-concept-v3/kit-d-bitrix-light.png'});return {articlePlain:await page.locator('#body').innerText().then(s=>s.length),figures:await page.locator('#body figure').count()};}
|
||||
)(page);
|
||||
```
|
||||
### Page
|
||||
- Page URL: http://127.0.0.1:54623/#kit
|
||||
- Page Title: ProgCode — от вызова к механизму / концепция V3
|
||||
Reference in new issue
Block a user