test(e2e): split overloaded checks, standardize screenshots
This commit is contained in:
1 parent
61d3cbeb8a
commit
90b2b89bac
17 files changed
+879
-649
No files matched your search
@@ -1,5 +1,5 @@
|
||||
const assert=require('node:assert/strict');
|
||||
module.exports=async({page,go})=>{
|
||||
module.exports=async({page,go,shot})=>{
|
||||
await page.route('**/api/access/policies',async route=>{await new Promise(r=>setTimeout(r,2200));await route.continue()});
|
||||
await go('/access/policies');
|
||||
assert.equal(await page.getByText('No policies yet.',{exact:true}).count(),0);
|
||||
@@ -15,4 +15,5 @@ module.exports=async({page,go})=>{
|
||||
await page.unroute('**/api/tasks?**');
|
||||
await page.getByRole('button',{name:'Retry runs',exact:true}).click();
|
||||
await page.getByRole('alert').filter({hasText:'Could not load recent runs'}).waitFor({state:'hidden'});
|
||||
await shot('recovered');
|
||||
};
|
||||
Reference in new issue
Block a user