mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 23:28:14 +00:00
Inconsistent behavior with multiple annotations in imagery (#7261)
* fix opacity issue * wip, though selection still weird * remove debugging * plots still have issue with last tag * add some better tests * Apply suggestions from code review Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com> * remove hardlined classnames * case sensitivity * good job tests finding issue --------- Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com> Co-authored-by: John Hill <john.c.hill@nasa.gov>
This commit is contained in:
@ -165,6 +165,29 @@ test.describe('Plot Tagging', () => {
|
||||
|
||||
await expect(page.getByText('Science')).toBeVisible();
|
||||
await expect(page.getByText('Driving')).toBeHidden();
|
||||
|
||||
// click elsewhere
|
||||
await page.locator('body').click();
|
||||
//click on tagged plot point again
|
||||
await canvas.click({
|
||||
position: {
|
||||
x: 100,
|
||||
y: 100
|
||||
}
|
||||
});
|
||||
// Add driving tag again
|
||||
await page.getByText('Annotations').click();
|
||||
await page.getByRole('button', { name: /Add Tag/ }).click();
|
||||
await page.getByPlaceholder('Type to select tag').click();
|
||||
await page.getByText('Driving').click();
|
||||
await expect(page.getByText('Science')).toBeVisible();
|
||||
await expect(page.getByText('Driving')).toBeVisible();
|
||||
|
||||
// Delete Driving again
|
||||
await page.hover('[aria-label="Tag"]:has-text("Driving")');
|
||||
await page.locator('[aria-label="Remove tag Driving"]').click();
|
||||
await expect(page.getByText('Science')).toBeVisible();
|
||||
await expect(page.getByText('Driving')).toBeHidden();
|
||||
}
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
|
Reference in New Issue
Block a user