Skip to content

Commit 8cf081d

Browse files
committed
skip test for bug
1 parent 6e5fd05 commit 8cf081d

File tree

1 file changed

+87
-82
lines changed

1 file changed

+87
-82
lines changed

Diff for: e2e/tests/functional/plugins/styling/stackedPlotStyling.e2e.spec.js

+87-82
Original file line numberDiff line numberDiff line change
@@ -156,86 +156,91 @@ test.describe('Stacked Plot styling', () => {
156156
);
157157
});
158158

159-
test('styling a child object of the flexible layout properly applies that style to only that child', async ({
160-
page
161-
}) => {
162-
await page.goto(stackedPlot.url, { waitUntil: 'domcontentloaded' });
163-
164-
await page.getByLabel('Edit').click();
165-
166-
await page.getByRole('tab', { name: 'Styles' }).click();
167-
168-
//Check default styles for SWG1 and SWG2
169-
await checkStyles(
170-
NO_STYLE_RGBA,
171-
NO_STYLE_RGBA,
172-
hexToRGB(defaultTextColor),
173-
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
174-
);
175-
176-
await checkStyles(
177-
NO_STYLE_RGBA,
178-
NO_STYLE_RGBA,
179-
hexToRGB(defaultTextColor),
180-
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
181-
);
182-
183-
// Set styles using setStyles function on StackedPlot1 but not StackedPlot2
184-
await setStyles(
185-
page,
186-
setBorderColor,
187-
setBackgroundColor,
188-
setTextColor,
189-
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
190-
);
191-
192-
//Set Font Styles on SWG1 but not SWG2
193-
await page.getByLabel('Stacked Plot Item Sine Wave Generator 1').click();
194-
//Set Font Size to 72
195-
await page.getByLabel('Set Font Size').click();
196-
await page.getByRole('menuitem', { name: '72px' }).click();
197-
198-
//Set Font Type to Monospace Bold. See setFontWeight and setFontFamily variables
199-
await page.getByLabel('Set Font Type').click();
200-
await page.getByRole('menuitem', { name: 'Monospace Bold' }).click();
201-
202-
// Save Flexible Layout
203-
await page.getByRole('button', { name: 'Save' }).click();
204-
await page.getByRole('listitem', { name: 'Save and Finish Editing' }).click();
205-
206-
// Check styles on StackedPlot1
207-
await checkStyles(
208-
hexToRGB(setBorderColor),
209-
hexToRGB(setBackgroundColor),
210-
hexToRGB(setTextColor),
211-
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
212-
);
213-
214-
// Check styles on StackedPlot2
215-
await checkStyles(
216-
NO_STYLE_RGBA,
217-
NO_STYLE_RGBA,
218-
hexToRGB(defaultTextColor),
219-
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
220-
);
221-
222-
// Reload page and verify that styles persist
223-
await page.reload({ waitUntil: 'domcontentloaded' });
224-
225-
// Check styles on StackedPlot1
226-
await checkStyles(
227-
hexToRGB(setBorderColor),
228-
hexToRGB(setBackgroundColor),
229-
hexToRGB(setTextColor),
230-
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
231-
);
232-
233-
// Check styles on StackedPlot2
234-
await checkStyles(
235-
NO_STYLE_RGBA,
236-
NO_STYLE_RGBA,
237-
hexToRGB(defaultTextColor),
238-
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
239-
);
240-
});
159+
test.fixme(
160+
'styling a child object of the flexible layout properly applies that style to only that child',
161+
async ({ page }) => {
162+
test.info().annotations.push({
163+
type: 'issue',
164+
description: 'https://github.com/nasa/openmct/issues/7338'
165+
});
166+
await page.goto(stackedPlot.url, { waitUntil: 'domcontentloaded' });
167+
168+
await page.getByLabel('Edit').click();
169+
170+
await page.getByRole('tab', { name: 'Styles' }).click();
171+
172+
//Check default styles for SWG1 and SWG2
173+
await checkStyles(
174+
NO_STYLE_RGBA,
175+
NO_STYLE_RGBA,
176+
hexToRGB(defaultTextColor),
177+
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
178+
);
179+
180+
await checkStyles(
181+
NO_STYLE_RGBA,
182+
NO_STYLE_RGBA,
183+
hexToRGB(defaultTextColor),
184+
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
185+
);
186+
187+
// Set styles using setStyles function on StackedPlot1 but not StackedPlot2
188+
await setStyles(
189+
page,
190+
setBorderColor,
191+
setBackgroundColor,
192+
setTextColor,
193+
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
194+
);
195+
196+
//Set Font Styles on SWG1 but not SWG2
197+
await page.getByLabel('Stacked Plot Item Sine Wave Generator 1').click();
198+
//Set Font Size to 72
199+
await page.getByLabel('Set Font Size').click();
200+
await page.getByRole('menuitem', { name: '72px' }).click();
201+
202+
//Set Font Type to Monospace Bold. See setFontWeight and setFontFamily variables
203+
await page.getByLabel('Set Font Type').click();
204+
await page.getByRole('menuitem', { name: 'Monospace Bold' }).click();
205+
206+
// Save Flexible Layout
207+
await page.getByRole('button', { name: 'Save' }).click();
208+
await page.getByRole('listitem', { name: 'Save and Finish Editing' }).click();
209+
210+
// Check styles on StackedPlot1
211+
await checkStyles(
212+
hexToRGB(setBorderColor),
213+
hexToRGB(setBackgroundColor),
214+
hexToRGB(setTextColor),
215+
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
216+
);
217+
218+
// Check styles on StackedPlot2
219+
await checkStyles(
220+
NO_STYLE_RGBA,
221+
NO_STYLE_RGBA,
222+
hexToRGB(defaultTextColor),
223+
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
224+
);
225+
226+
// Reload page and verify that styles persist
227+
await page.reload({ waitUntil: 'domcontentloaded' });
228+
229+
// Check styles on StackedPlot1
230+
await checkStyles(
231+
hexToRGB(setBorderColor),
232+
hexToRGB(setBackgroundColor),
233+
hexToRGB(setTextColor),
234+
page.getByLabel('Stacked Plot Item Sine Wave Generator 1')
235+
);
236+
237+
// Check styles on StackedPlot2
238+
await checkStyles(
239+
NO_STYLE_RGBA,
240+
NO_STYLE_RGBA,
241+
hexToRGB(defaultTextColor),
242+
page.getByLabel('Stacked Plot Item Sine Wave Generator 2')
243+
);
244+
}
245+
);
241246
});

0 commit comments

Comments
 (0)