diff options
author | Mariusz Rosinski <mariusz.rosinski@gmail.com> | 2022-09-30 20:16:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 20:16:35 +0300 |
commit | 27c30132d23421de79a271b737f98c53f59bd065 (patch) | |
tree | e4150ccedbf67ff66f76b164b6ec58369e4548a8 /e2e | |
parent | 2bdac5650527ba077b2a228e87ec5a02d1d86007 (diff) |
4386 - In time conductor history, show them on hover if only milliseconds have changed - tooltip (#5783)
* 4386 - In time conductor history, show them on hover if only milliseconds have changed
* [e2e] Add quick test
Co-authored-by: Jamie V <jamie.j.vigliotta@nasa.gov>
Co-authored-by: Jesse Mazzella <ozyx@users.noreply.github.com>
Co-authored-by: Jesse Mazzella <jesse.d.mazzella@nasa.gov>
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/tests/functional/plugins/timeConductor/timeConductor.e2e.spec.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/e2e/tests/functional/plugins/timeConductor/timeConductor.e2e.spec.js b/e2e/tests/functional/plugins/timeConductor/timeConductor.e2e.spec.js index ea50e8530..645c4fc91 100644 --- a/e2e/tests/functional/plugins/timeConductor/timeConductor.e2e.spec.js +++ b/e2e/tests/functional/plugins/timeConductor/timeConductor.e2e.spec.js @@ -168,3 +168,23 @@ test.describe('Time conductor input fields real-time mode', () => { // select an option and verify the offsets are updated correctly }); }); + +test.describe('Time Conductor History', () => { + test("shows milliseconds on hover @unstable", async ({ page }) => { + test.info().annotations.push({ + type: 'issue', + description: 'https://github.com/nasa/openmct/issues/4386' + }); + // Navigate to Open MCT in Fixed Time Mode, UTC Time System + // with startBound at 2022-01-01 00:00:00.000Z + // and endBound at 2022-01-01 00:00:00.200Z + await page.goto('./#/browse/mine?view=grid&tc.mode=fixed&tc.startBound=1640995200000&tc.endBound=1640995200200&tc.timeSystem=utc&hideInspector=true', { waitUntil: 'networkidle' }); + await page.locator("[aria-label='Time Conductor History']").hover({ trial: true}); + await page.locator("[aria-label='Time Conductor History']").click(); + + // Validate history item format + const historyItem = page.locator('text="2022-01-01 00:00:00 + 200ms"'); + await expect(historyItem).toBeEnabled(); + await expect(historyItem).toHaveAttribute('title', '2022-01-01 00:00:00.000 - 2022-01-01 00:00:00.200'); + }); +}); |