Skip to content
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

Don't persist current tab when display is locked #7882

Merged
merged 11 commits into from
Oct 11, 2024
Prev Previous commit
Next Next commit
Fixed test that was broken by change in master
  • Loading branch information
akhenry committed Oct 11, 2024
commit 4b7905f1e5ba96ee24d913d8d041ae8408d2ac13
4 changes: 2 additions & 2 deletions e2e/tests/functional/plugins/tabs/tabs.e2e.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ test.describe('Tabs View', () => {
}) => {
await page.goto(tabsView.url);
//lock the view
await page.getByLabel('Unlocked for editing - click to lock.', { exact: true }).click();
await page.getByLabel('Unlocked for editing, click to lock.', { exact: true }).click();
// get the initial tab index
const initialTab = page.getByLabel(/- selected/);
// switch to a different tab in the view
Expand All @@ -113,7 +113,7 @@ test.describe('Tabs View', () => {
await expect(lockedSelectedTab).toHaveText(await initialTab.textContent());

//unlock the view
await page.getByLabel('Locked for editing - click to unlock.', { exact: true }).click();
await page.getByLabel('Locked for editing. Click to unlock.', { exact: true }).click();
// switch to a different tab in the view
await swgTab.click();
await page.getByLabel(`${sineWaveGenerator.name} Object View`).isVisible();
Expand Down
Loading