Allow specification of swimlanes via configuration (#7200)
* Use specified group order for plans * Allow groupIds to be a function * Fix typo in if statement * Check that activities are present for a given group * Change refresh to emit the new model * Update domainobject on change * Revert changes for domainObject * Revert groupIds as functions. Check if groups are objects with names instead. * Add e2e test for plan swim lane order * Address review comments - improve if statement * Move function to right util helper * Fix path for imported code * Remove focused test * Change the name of the ordered group configuration
This commit is contained in:
@@ -21,8 +21,13 @@
|
||||
*****************************************************************************/
|
||||
const { test } = require('../../../pluginFixtures');
|
||||
const { createPlanFromJSON } = require('../../../appActions');
|
||||
const { addPlanGetInterceptor } = require('../../../helper/planningUtils.js');
|
||||
const testPlan1 = require('../../../test-data/examplePlans/ExamplePlan_Small1.json');
|
||||
const { assertPlanActivities } = require('../../../helper/planningUtils');
|
||||
const testPlanWithOrderedLanes = require('../../../test-data/examplePlans/ExamplePlanWithOrderedLanes.json');
|
||||
const {
|
||||
assertPlanActivities,
|
||||
assertPlanOrderedSwimLanes
|
||||
} = require('../../../helper/planningUtils');
|
||||
|
||||
test.describe('Plan', () => {
|
||||
let plan;
|
||||
@@ -36,4 +41,14 @@ test.describe('Plan', () => {
|
||||
test('Displays all plan events', async ({ page }) => {
|
||||
await assertPlanActivities(page, testPlan1, plan.url);
|
||||
});
|
||||
|
||||
test('Displays plans with ordered swim lanes configuration', async ({ page }) => {
|
||||
// Add configuration for swim lanes
|
||||
await addPlanGetInterceptor(page);
|
||||
// Create the plan
|
||||
const planWithSwimLanes = await createPlanFromJSON(page, {
|
||||
json: testPlanWithOrderedLanes
|
||||
});
|
||||
await assertPlanOrderedSwimLanes(page, testPlanWithOrderedLanes, planWithSwimLanes.url);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user