# 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 <dominik.broj@grafana.com>
12 lines
438 B
TypeScript
12 lines
438 B
TypeScript
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');
|
|
});
|