From 23b4dffd9d875ba164b09ff1cd36164198e0389e Mon Sep 17 00:00:00 2001 From: alex-minaiev-frontegg Date: Thu, 12 Dec 2024 16:10:21 +0200 Subject: [PATCH] FR-18979: run script --- .../src/switch_tenant_test.dart | 4 ++-- run_integration_test.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 run_integration_test.sh diff --git a/example/integration_test/src/switch_tenant_test.dart b/example/integration_test/src/switch_tenant_test.dart index 3891684..d8ce2ab 100644 --- a/example/integration_test/src/switch_tenant_test.dart +++ b/example/integration_test/src/switch_tenant_test.dart @@ -59,12 +59,12 @@ void main() { await $.tap(find.byKey(const ValueKey("TenantTab"))); await $.pumpAndSettle(); - //switch tenant 2 + // Switch tenant 2 await $.tap(find.byKey(ValueKey(tenantId2))); await $.pumpAndSettle(); await $.waitUntilVisible(find.textContaining("$tenantName2 (active)", findRichText: true)); - //switch tenant 1 + // Switch tenant 1 await $.tap(find.byKey(ValueKey(tenantId1))); await $.pumpAndSettle(); await $.waitUntilVisible(find.textContaining("$tenantName1 (active)", findRichText: true)); diff --git a/run_integration_test.sh b/run_integration_test.sh new file mode 100644 index 0000000..59051d0 --- /dev/null +++ b/run_integration_test.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +cd example + +flutter pub global activate patrol_cli + +patrol doctor + +# iOS run +patrol test -d 'iPhone 16 Pro Max' -t integration_test/src/switch_tenant_test.dart --uninstall + + +# Android run +patrol test -d emulator-5554 -t integration_test/src/sign_up_via_email_and_password_test.dart + + +