fixing issue with non creatable objects previously showing styles tab in stacked plots, may be changed later?

This commit is contained in:
Jamie V 2025-04-15 12:16:50 -07:00
parent 199c7e0676
commit 6e1a511fea

View File

@ -127,17 +127,30 @@ test.describe('Stacked Plot styling @a11y', () => {
name: 'StackedPlot1' name: 'StackedPlot1'
}); });
// Create two SWGs and attach them to the Stacked Plot // Create an overlay plots to hold the SWGs
const overlayPlot1 = await createDomainObjectWithDefaults(page, {
type: 'Overlay Plot',
name: 'Overlay Plot 1',
parent: stackedPlot.uuid
});
const overlayPlot2 = await createDomainObjectWithDefaults(page, {
type: 'Overlay Plot',
name: 'Overlay Plot 2',
parent: stackedPlot.uuid
});
// Create two SWGs and attach them to the overlay plots
await createDomainObjectWithDefaults(page, { await createDomainObjectWithDefaults(page, {
type: 'Sine Wave Generator', type: 'Sine Wave Generator',
name: 'Sine Wave Generator 1', name: 'Sine Wave Generator 1',
parent: stackedPlot.uuid parent: overlayPlot1.uuid
}); });
await createDomainObjectWithDefaults(page, { await createDomainObjectWithDefaults(page, {
type: 'Sine Wave Generator', type: 'Sine Wave Generator',
name: 'Sine Wave Generator 2', name: 'Sine Wave Generator 2',
parent: stackedPlot.uuid parent: overlayPlot2.uuid
}); });
}); });
@ -180,7 +193,7 @@ test.describe('Stacked Plot styling @a11y', () => {
setBorderColor, setBorderColor,
setBackgroundColor, setBackgroundColor,
setTextColor, setTextColor,
page.getByLabel('Stacked Plot Item Sine Wave Generator 1') page.getByLabel('Stacked Plot Item Overlay Plot 1')
); );
await percySnapshot(page, `Edit Mode StackedPlot with Styled SWG (theme: '${theme}')`); await percySnapshot(page, `Edit Mode StackedPlot with Styled SWG (theme: '${theme}')`);