From 5ab4e7fc070afa9c93e94d35e653781864489e84 Mon Sep 17 00:00:00 2001 From: dal Date: Thu, 18 Sep 2025 11:40:23 -0600 Subject: [PATCH] a few new momentic tests --- apps/momentic/modules/logout.module.yaml | 23 +++++++++++++++ .../login-then-logout-no-cookies.test.yaml | 28 +++++++++++++++++++ ...-should-be-able-to-use-pie-chart.test.yaml | 2 +- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 apps/momentic/modules/logout.module.yaml create mode 100644 apps/momentic/tests/login/login-then-logout-no-cookies.test.yaml diff --git a/apps/momentic/modules/logout.module.yaml b/apps/momentic/modules/logout.module.yaml new file mode 100644 index 000000000..b8e4dc848 --- /dev/null +++ b/apps/momentic/modules/logout.module.yaml @@ -0,0 +1,23 @@ +fileType: momentic/module +moduleId: d5944b6b-f9c3-4952-8f0e-bec9bc31da95 +name: logout +description: click the log out +enabled: true +schemaVersion: 1.0.21 +steps: + - id: 7c25cc79-ed6a-47a7-8847-976decbec506 + type: PRESET_ACTION + command: + id: 645db1ca-0b54-49a8-9a77-9ef176319c67 + type: CLICK + target: + type: description + elementDescriptor: the div with email 'chad@buster.so' in the sidebar + - id: 1175c55c-1529-4a2f-bd9f-01073ec825c0 + type: PRESET_ACTION + command: + id: 90d69ef4-37ce-417a-95c3-ae38b88dbe8d + type: CLICK + target: + type: description + elementDescriptor: click the logout button. diff --git a/apps/momentic/tests/login/login-then-logout-no-cookies.test.yaml b/apps/momentic/tests/login/login-then-logout-no-cookies.test.yaml new file mode 100644 index 000000000..20f17a1ce --- /dev/null +++ b/apps/momentic/tests/login/login-then-logout-no-cookies.test.yaml @@ -0,0 +1,28 @@ +fileType: momentic/test +id: 0558c1d8-ab43-40c2-b630-744e9901d7ae +name: login-then-logout-no-cookies +description: a user should log in then log out and there should be no cookies there. +schemaVersion: 1.0.21 +advanced: + viewport: + width: 1920 + height: 1080 + browserType: Chromium +retries: 0 +envs: + - name: development + default: true +steps: + - id: 93f4fc64-166c-4be7-85c3-80a87dc53759 + type: MODULE + moduleId: defc36e9-b0a7-4bfe-940f-7901493d5e5e + - id: 6d950ded-f974-4b27-9908-d87a20f053b3 + type: MODULE + moduleId: d5944b6b-f9c3-4952-8f0e-bec9bc31da95 + - id: cdaa5062-117d-43d3-a18f-e38f42500ea5 + type: PRESET_ACTION + command: + id: ac2e59c2-ebe3-47b1-8152-b9133c9a0c78 + type: AI_ASSERTION + assertion: There should be no authentication cookies or session cookies stored + in the browser diff --git a/apps/momentic/tests/metrics/user-should-be-able-to-use-pie-chart.test.yaml b/apps/momentic/tests/metrics/user-should-be-able-to-use-pie-chart.test.yaml index e4085851d..9fecc2838 100644 --- a/apps/momentic/tests/metrics/user-should-be-able-to-use-pie-chart.test.yaml +++ b/apps/momentic/tests/metrics/user-should-be-able-to-use-pie-chart.test.yaml @@ -19,7 +19,7 @@ steps: - id: 292ed32d-c649-4321-bd7b-29516169fb74 type: PRESET_ACTION command: - id: 9a4c8481-9833-4eec-a016-96e8499e620e + id: b2d94baa-b0ba-4555-8846-f0d87c47b237 type: CLICK target: type: description