-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tabs navigation on the settings page (#4289)
# What this PR does Fix tabs navigation on the settings page ## Which issue(s) this PR closes Related to https://github.com/grafana/oncall-private/issues/2563 ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. --------- Co-authored-by: Dominik Broj <[email protected]>
- Loading branch information
Showing
4 changed files
with
34 additions
and
12 deletions.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { test, expect } from '../fixtures'; | ||
import { goToOnCallPage } from '../utils/navigation'; | ||
|
||
test(`tab query param is used to show proper page tab`, async ({ adminRolePage }) => { | ||
const { page } = adminRolePage; | ||
goToOnCallPage(page, `settings`, { tab: 'ChatOps' }); | ||
|
||
const tab = page.getByRole('tab', { name: 'Chat Ops' }); | ||
const isSelected = await tab.getAttribute('aria-selected'); | ||
|
||
expect(isSelected).toBe('true'); | ||
}); |
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
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
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