Skip to content

Commit dcdf44f

Browse files
authored
1 parent 22ec723 commit dcdf44f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

e2e/stackoverflow.spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ test.describe('stackoverflow', () => {
2020
// check that all advisories are shown in the tooltip's advisories list
2121
const advisories = overlayModuleName.locator(tooltipSourceSelector);
2222
await Expect(advisories).toHaveCount(advisoriesNames.length);
23+
24+
// check that the issue counter not select with the original text
25+
const codeElement = page.locator('code', { hasText: 'module_name' });
26+
await codeElement.selectText();
27+
const selectionText = await page.evaluate(() => window.getSelection().toString());
28+
Expect(selectionText).toEqual('npm install --save module_name');
2329
});
2430

2531
test('popup page', async ({ page, extensionId }) => {

src/custom-elements/Indicator.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ export default defineComponent({
7979
}
8080
8181
&__wrapper {
82-
display: inline-block;
82+
display: inline-flex;
8383
user-select: none;
84-
position: relative;
8584
height: $indicator-height;
86-
top: $padding-l1;
8785
overflow: hidden;
8886
border-radius: 4px;
8987
align-items: center;

0 commit comments

Comments
 (0)