hazirlik ozetinde belge sorumlusu kabulunu ekle
Quality gates / test-build (push) Canceled after 0s
Quality gates / container (push) Canceled after 0s

This commit is contained in:
2026-09-06 21:39:12 +03:00
parent 821df474ea
commit 7e8ef35b0d
2 changed files with 13 additions and 1 deletions
+4
View File
@@ -156,6 +156,10 @@ try {
evidence.checks.overviewStatus = overview?.status(); evidence.checks.overviewStatus = overview?.status();
evidence.checks.overviewFrames = await page.locator('iframe[title^="Hazırlık"]').count(); evidence.checks.overviewFrames = await page.locator('iframe[title^="Hazırlık"]').count();
if (evidence.checks.overviewFrames !== 3) throw new Error('Hazırlık özeti üç görünüm alanında açılmadı.'); if (evidence.checks.overviewFrames !== 3) throw new Error('Hazırlık özeti üç görünüm alanında açılmadı.');
const overviewFrame = page.frameLocator('iframe[title="Hazırlık 390"]');
await overviewFrame.getByText('Belge sorumluları:', { exact: false }).waitFor({ state: 'attached', timeout: 10_000 });
evidence.checks.documentOwnerInPreparationOverview = await overviewFrame.getByText('Belge sorumluları: QA zorunlu belge: QA Belge Sorumlusu', { exact: true }).count() === 1;
if (!evidence.checks.documentOwnerInPreparationOverview) throw new Error('Belge sorumlusu hazırlık özetinde görünmedi.');
const mobile = await context.newPage(); const mobile = await context.newPage();
await mobile.setViewportSize({ width: 390, height: 844 }); await mobile.setViewportSize({ width: 390, height: 844 });
try { try {
+9 -1
View File
@@ -128,7 +128,15 @@ const ui=await createServer({server:{host:'127.0.0.1',port:0,proxy:{'/api':{targ
if(req.url?.startsWith('/qa-overview-frame')){ if(req.url?.startsWith('/qa-overview-frame')){
const frameWidth=new URL(req.url,'http://localhost').searchParams.get('width'); const frameWidth=new URL(req.url,'http://localhost').searchParams.get('width');
const widthStyle=/^(390|768|1440)$/.test(frameWidth||'')?` style="width:${frameWidth}px"`:''; const widthStyle=/^(390|768|1440)$/.test(frameWidth||'')?` style="width:${frameWidth}px"`:'';
const cases=tenders.map((t,i)=>({...t,baslik:i===0?'QA Uzun laboratuvar cihazı '+ 'KesintisizÜrünKodu'.repeat(12):t.baslik,atananPersonel:i===0?'QA Sorumlu Uzman':'',takipte:true})); const cases=tenders.map((t,i)=>{
const base={...t,baslik:i===0?'QA Uzun laboratuvar cihazı '+ 'KesintisizÜrünKodu'.repeat(12):t.baslik,atananPersonel:i===0?'QA Sorumlu Uzman':'',takipte:true};
if(i!==0)return base;
const ownerFile={id:'qa-owner-file',ad:'QA sorumlu belgesi.pdf',tur:'firma',boyut:100,olusturma:'2026-09-06T00:00:00Z',erisilebilir:true};
const prepared=readyBid(base,ownerFile);
const [documentKeyValue]=Object.keys(prepared.bidDraft.checks.documents);
prepared.bidDraft.checks.documents[documentKeyValue].owner='QA Belge Sorumlusu';
return prepared;
});
const html=`<html lang="tr"><head><meta name="viewport" content="width=device-width,initial-scale=1"></head><body${widthStyle}><div id="root"></div><script type="module"> const html=`<html lang="tr"><head><meta name="viewport" content="width=device-width,initial-scale=1"></head><body${widthStyle}><div id="root"></div><script type="module">
import React from '/node_modules/.vite/deps/react.js'; import React from '/node_modules/.vite/deps/react.js';
import ReactDOM from '/node_modules/.vite/deps/react-dom_client.js'; import ReactDOM from '/node_modules/.vite/deps/react-dom_client.js';