Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShefali <simplyrender@gmail.com>2022-08-18 21:24:10 +0300
committerShefali <simplyrender@gmail.com>2022-08-18 21:24:10 +0300
commit50ce311177f98f14632ee599093772a4f633874d (patch)
treed89d76791591be63bfe1d9099b9a87ae141825da
parent2a38a9a888f2feb4f956e1a132bb73f5d8a3a1d5 (diff)
-rw-r--r--e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js
index 847f9b28a..f3f9826ae 100644
--- a/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js
+++ b/e2e/tests/functional/plugins/conditionSet/conditionSet.e2e.spec.js
@@ -27,6 +27,7 @@ demonstrate some playwright for test developers. This pattern should not be re-u
*/
const { test, expect } = require('../../../../pluginFixtures.js');
+const { createDomainObjectWithDefaults } = require('../../../../appActions');
let conditionSetUrl;
let getConditionSetIdentifierFromUrl;
@@ -178,3 +179,24 @@ test.describe.serial('Condition Set CRUD Operations on @localStorage', () => {
});
});
+
+test.describe('Basic Condition Set Use', () => {
+ test('Can add a condition', async ({ page }) => {
+ //Navigate to baseURL
+ await page.goto('./', { waitUntil: 'networkidle' });
+
+ // Create a new condition set
+ await createDomainObjectWithDefaults(page, {
+ type: 'Condition Set',
+ name: "Test Condition Set"
+ });
+ // Change the object to edit mode
+ await page.locator('[title="Edit"]').click();
+
+ // Click Add Condition button
+ await page.locator('#addCondition').click();
+ // Check that the new Unnamed Condition section appears
+ const numOfUnnamedConditions = await page.locator('text=Unnamed Condition').count();
+ expect(numOfUnnamedConditions).toEqual(1);
+ });
+});