diff --git a/test/ui/suite/serverlessFunction.ts b/test/ui/suite/serverlessFunction.ts index cf3b502d9..cbe769ed7 100644 --- a/test/ui/suite/serverlessFunction.ts +++ b/test/ui/suite/serverlessFunction.ts @@ -51,7 +51,7 @@ export function testCreateServerlessFunction(path: string) { await serverlessFunctionView.clickCreateButton(); console.log('1') - await new Promise((res => {setTimeout(res, 5_500)})); + await new Promise((res => {setTimeout(res, 2_500)})); console.log('2') const refreshButton = await section.getAction('Refresh Serverless Function View'); @@ -60,6 +60,8 @@ export function testCreateServerlessFunction(path: string) { await refreshButton.click(); console.log('4') + await new Promise((res => {setTimeout(res, 2_500)})); + expect(await section.findItem(functionName)).to.be.not.undefined; console.log('5') });