From 582f6db21fb1a6aa0d92c864499d99eb155c0e7d Mon Sep 17 00:00:00 2001 From: Krishna Agarwal <159047652+krishnaa05@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:46:13 -0500 Subject: [PATCH] GWAS Monthly Workflow Limit (#1055) * GWAS Monthly Workflow Limit * Update GWASUIAppTest.js * Update GWASUIAppTest.js --- suites/portal/GWASUIAppTest.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/suites/portal/GWASUIAppTest.js b/suites/portal/GWASUIAppTest.js index c5a0aa70c..c1b6b9c2f 100644 --- a/suites/portal/GWASUIAppTest.js +++ b/suites/portal/GWASUIAppTest.js @@ -276,3 +276,24 @@ Scenario('Unauthorized access to GWAS @GWASUI', async ({ gwas.do.goToAnalysisPage(); gwas.do.unauthorizedUserSelectTeamProject(); }); + + +// TODO : Add/Update existing test cases for "Monthly Workflow Limit" +// Test Case 1: On GWAS workflow submission, "Monthly Workflow Limit" increases by 1 +// 1. Log into application using main_account user. +// 2. Goto /analysis/GWASUIApp endpoint. +// 3. Submit the GWAS wokflow. +// 4. Validate the "Monthly Workflow Limit" is increased by 1. + +// Test Case 2: User fails to submit GWAS workflow once "Monthly Workflow Limit" is maxed out +// 1. Log into application using main_account user. +// 2. Goto /analysis/GWASUIApp endpoint. +// 3. Verify the "Monthly Workflow Limit" is maxed out. +// 4. Submit the GWAS wokflow. +// 5. Validate an the workflow submission fails. + +// Test Case 3: Validate the "Monthly Workflow Limit" on GWAS Apps is same as GWAS result +// 1. Log into application using main_account user. +// 2. Goto /analysis/GWASUIApp endpoint. +// 3. Submit the GWAS wokflow. +// 4. Validate the "Monthly Workflow Limit" is the same in GWAS result (/analysis/GWASResults endpoint)