style: show interaction when active (#1692)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Aditya Sharmaandhimself65 authored and GitHub committed 2023-03-27 04:04:03 +00:00
1 parent 0968a26a84
commit b01deaa786
4 files changed
+609 -783

No files matched your search

@@ -0,0 +1,24 @@
import { expect } from '@playwright/test';
import { openHomePage } from '../libs/load-page';
import { test } from '../libs/playwright';
import { clickSideBarSettingButton } from '../libs/sidebar';
test.describe('Local first setting page', () => {
test('Should highlight the setting page menu when selected', async ({
page,
}) => {
await openHomePage(page);
const element = await page.getByTestId(
'slider-bar-workspace-setting-button'
);
const prevColor = await element.evaluate(
element => window.getComputedStyle(element).color
);
await clickSideBarSettingButton(page);
const currentColor = await element.evaluate(
element => window.getComputedStyle(element).color
);
expect(prevColor).not.toBe(currentColor);
});
});