make it easy to write multiple e2e tests (#280)
This commit is contained in:
@@ -161,7 +161,10 @@ export default function AppDetailsPage() {
|
||||
const fullAppPath = appBasePath.replace("$APP_BASE_PATH", selectedApp.path);
|
||||
|
||||
return (
|
||||
<div className="relative min-h-screen p-4 w-full">
|
||||
<div
|
||||
className="relative min-h-screen p-4 w-full"
|
||||
data-testid="app-details-page"
|
||||
>
|
||||
<Button
|
||||
onClick={() => router.history.back()}
|
||||
variant="outline"
|
||||
|
||||
@@ -124,7 +124,9 @@ export default function HomePage() {
|
||||
chatId: result.chatId,
|
||||
attachments,
|
||||
});
|
||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||
await new Promise((resolve) =>
|
||||
setTimeout(resolve, settings?.isTestMode ? 0 : 2000),
|
||||
);
|
||||
|
||||
setInputValue("");
|
||||
setSelectedAppId(result.app.id);
|
||||
|
||||
Reference in New Issue
Block a user