سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 19:30 UTC
Fix C8 DOM test auth overlay isolation
davoodmehraban89 committed
Oct 1, 2026 at 20:24 UTC
29109c275c1ffacdb370b0744113482bb22fd330
1 file changed
+2
scripts/office-slice-c8.spec.js
+2
@@ -2,6 +2,7 @@ const {test,expect}=require('@playwright/test');
2
test('Office C8 policy editor publishes a two-stage policy',async({page})=>{
3
await page.goto('http://127.0.0.1:4173/index.html',{waitUntil:'domcontentloaded'});
4
await page.evaluate(()=>{
5
+ const auth=document.getElementById('auth-screen');if(auth)auth.style.display='none';
6
window.currentUser={organizationId:'11111111-1111-1111-1111-111111111111'};
7
window.hasFinoraCapability=(moduleKey,capability)=>moduleKey==='office_automation'&&capability==='configure';
8
window.__c8Calls=[];
@@ -44,6 +45,7 @@ test('Office C8 policy editor publishes a two-stage policy',async({page})=>{
45
test('Office C8 policy publish control is authority-safe',async({page})=>{
46
await page.goto('http://127.0.0.1:4173/index.html',{waitUntil:'domcontentloaded'});
47
await page.evaluate(()=>{
48
+ const auth=document.getElementById('auth-screen');if(auth)auth.style.display='none';
49
window.currentUser={organizationId:'22222222-2222-2222-2222-222222222222'};
50
window.hasFinoraCapability=()=>false;
51
window.sb={rpc:async()=>({data:[],error:null})};