-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plots correctly use configuration set on the parent if they can't their own #7770
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
46b7268
For telemetry that cannot have it's own configuration, ensure that it…
shefalijoshi 288c386
stacked plot test checks that config properties for immutable telemet…
shefalijoshi 72fadad
add tab navigation to inspector tabs
unlikelyzero d2f2f61
add accessibility metadata to this component
unlikelyzero 9116146
Update title to be on the correct component. Add expand/collapse logic
unlikelyzero 0e74292
clean up test
unlikelyzero f293ec7
refactor: better a11y for plot forms, fix "expand by default" test, r…
ozyx b38fe41
a11y: aria label for plotOptionsItem
ozyx 954b88c
refactor(a11y): PlotOptionsBrowse structure to have better a11y
ozyx dd7b475
fixed tests
unlikelyzero eab3d35
address comment
unlikelyzero 3263957
reverted to match previous commit
unlikelyzero ce1443f
Merge branch 'master' into fix-stackedplots-config
ozyx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
clean up test
- Loading branch information
commit 0e7429246c6a9e5cc8934d6b8210c04a872a1fc6
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,9 +232,7 @@ test.describe('Stacked Plot', () => { | |
).toContainText(swgC.name); | ||
}); | ||
|
||
test.only('Changing properties of an immutable child plot are applied correctly', async ({ | ||
page | ||
}) => { | ||
test('Changing properties of an immutable child plot are applied correctly', async ({ page }) => { | ||
await page.goto(stackedPlot.url); | ||
|
||
// Go into edit mode | ||
|
@@ -248,10 +246,8 @@ test.describe('Stacked Plot', () => { | |
// Expand config for the series | ||
await page.getByLabel('Expand Sine Wave Generator').click(); | ||
|
||
// turn off alarm markers | ||
// turn off alarm markers. Technically there should be a getBy locator to ensure we're selecting the correct alarm marker | ||
await page.getByLabel('Alarm Markers').uncheck(); | ||
//TODO We need to get it to the point that the following is the locator logic | ||
// await page.getByRole('listitem', { name: 'Alarm Markers' }).getByRole('checkbox').uncheck(); | ||
|
||
// save | ||
await page.getByRole('button', { name: 'Save' }).click(); | ||
|
@@ -268,14 +264,11 @@ test.describe('Stacked Plot', () => { | |
await page.getByLabel('Expand Sine Wave Generator').click(); | ||
|
||
// Assert that alarm markers are still turned off | ||
//TODO We need to get it to the point that the following is the locator logic | ||
// await await expect(page.getByRole('listitem', { name: 'Alarm Markers' }).getByRole('checkbox').not.toBeChecked(); | ||
await expect( | ||
page | ||
.getByTitle('Display markers visually denoting points in alarm.') | ||
.getByRole('cell', { name: 'Disabled' }) | ||
).toBeVisible(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a chained locator which leverages Titles |
||
// await expect(page.getByLabel('Inspector Views').getByRole('checkbox').nth(1)).not.toBeChecked(); | ||
}); | ||
|
||
test('the legend toggles between aggregate and per child', async ({ page }) => { | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this should be a chained
getBy
locator to ensure we're selecting the correct alarm marker