mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 22:50:49 +00:00
test(visual): add unclipped activity names visual tests + a11y fixes (#7454)
* test: add unclipped activity names visual tests + a11y fixes * lint: add additional dictionaries
This commit is contained in:
parent
3cbaa7bf07
commit
ee5081f807
@ -498,7 +498,7 @@
|
|||||||
"specced",
|
"specced",
|
||||||
"countup"
|
"countup"
|
||||||
],
|
],
|
||||||
"dictionaries": ["npm", "softwareTerms", "node", "html", "css", "bash", "en_US"],
|
"dictionaries": ["npm", "softwareTerms", "node", "html", "css", "bash", "en_US", "en-gb", "misc"],
|
||||||
"ignorePaths": [
|
"ignorePaths": [
|
||||||
"package.json",
|
"package.json",
|
||||||
"dist/**",
|
"dist/**",
|
||||||
|
@ -75,7 +75,25 @@ test.describe('Visual - Planning', () => {
|
|||||||
parent: ganttChart.uuid
|
parent: ganttChart.uuid
|
||||||
});
|
});
|
||||||
await setBoundsToSpanAllActivities(page, examplePlanSmall, ganttChart.url);
|
await setBoundsToSpanAllActivities(page, examplePlanSmall, ganttChart.url);
|
||||||
await percySnapshot(page, `Gantt Chart View (theme: ${theme})`, {
|
await percySnapshot(page, `Gantt Chart View (theme: ${theme}) - Clipped Activity Names`, {
|
||||||
|
scope: snapshotScope
|
||||||
|
});
|
||||||
|
|
||||||
|
// Expand the inspect pane and uncheck the 'Clip Activity Names' option
|
||||||
|
await page.getByRole('button', { name: 'Expand Inspect Pane' }).click();
|
||||||
|
await page.getByRole('tab', { name: 'Config' }).click();
|
||||||
|
await page.getByLabel('Edit Object').click();
|
||||||
|
await page.getByLabel('Clip Activity Names').click();
|
||||||
|
|
||||||
|
// Close the inspect pane and save the changes
|
||||||
|
await page.getByRole('button', { name: 'Collapse Inspect Pane' }).click();
|
||||||
|
await page.getByLabel('Save').click();
|
||||||
|
await page.getByRole('listitem', { name: 'Save and Finish Editing' }).click();
|
||||||
|
|
||||||
|
// Dismiss the notification
|
||||||
|
await page.getByLabel('Dismiss').click();
|
||||||
|
|
||||||
|
await percySnapshot(page, `Gantt Chart View (theme: ${theme}) - Unclipped Activity Names`, {
|
||||||
scope: snapshotScope
|
scope: snapshotScope
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -98,6 +116,28 @@ test.describe('Visual - Planning', () => {
|
|||||||
await percySnapshot(page, `Gantt Chart View w/ draft status (theme: ${theme})`, {
|
await percySnapshot(page, `Gantt Chart View w/ draft status (theme: ${theme})`, {
|
||||||
scope: snapshotScope
|
scope: snapshotScope
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Expand the inspect pane and uncheck the 'Clip Activity Names' option
|
||||||
|
await page.getByRole('button', { name: 'Expand Inspect Pane' }).click();
|
||||||
|
await page.getByRole('tab', { name: 'Config' }).click();
|
||||||
|
await page.getByLabel('Edit Object').click();
|
||||||
|
await page.getByLabel('Clip Activity Names').click();
|
||||||
|
|
||||||
|
// Close the inspect pane and save the changes
|
||||||
|
await page.getByRole('button', { name: 'Collapse Inspect Pane' }).click();
|
||||||
|
await page.getByLabel('Save').click();
|
||||||
|
await page.getByRole('listitem', { name: 'Save and Finish Editing' }).click();
|
||||||
|
|
||||||
|
// Dismiss the notification
|
||||||
|
await page.getByLabel('Dismiss').click();
|
||||||
|
|
||||||
|
await percySnapshot(
|
||||||
|
page,
|
||||||
|
`Gantt Chart View w/ draft status (theme: ${theme}) - Unclipped Activity Names`,
|
||||||
|
{
|
||||||
|
scope: snapshotScope
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
// Skipping for https://github.com/nasa/openmct/issues/7421
|
// Skipping for https://github.com/nasa/openmct/issues/7421
|
||||||
// test.afterEach(async ({ page }, testInfo) => {
|
// test.afterEach(async ({ page }, testInfo) => {
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
v-if="isCollapsable"
|
v-if="isCollapsable"
|
||||||
class="l-pane__collapse-button c-icon-button"
|
class="l-pane__collapse-button c-icon-button"
|
||||||
:name="collapseTitle"
|
:name="collapseTitle"
|
||||||
|
:aria-label="collapseTitle"
|
||||||
:title="collapseTitle"
|
:title="collapseTitle"
|
||||||
@click="toggleCollapse"
|
@click="toggleCollapse"
|
||||||
></button>
|
></button>
|
||||||
@ -36,6 +37,7 @@
|
|||||||
<button
|
<button
|
||||||
class="l-pane__expand-button"
|
class="l-pane__expand-button"
|
||||||
:name="expandTitle"
|
:name="expandTitle"
|
||||||
|
:aria-label="expandTitle"
|
||||||
:title="expandTitle"
|
:title="expandTitle"
|
||||||
@click="toggleCollapse"
|
@click="toggleCollapse"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user