vscode-extension-tester icon indicating copy to clipboard operation
vscode-extension-tester copied to clipboard

[🚀 Request] Move hardcoded locators from TextEditor.ts to locators

Open pospisilf opened this issue 5 months ago • 0 comments

Describe the request

Some of the locators for newer version are currently hardcoded, this should be replaced with corresponding locators in locators lib.

Example: const breakpointContainer = TextEditor.versionInfo.version >= '1.80.0' ? await this.findElement(By.className('glyph-margin-widgets')) : lineOverlay;

https://github.com/redhat-developer/vscode-extension-tester/blob/c6a81448b09be1de1d3595feb0f31df19d3b23d9/packages/page-objects/src/components/editor/TextEditor.ts#L803

Usage

Cleaner code.

pospisilf avatar Aug 30 '24 10:08 pospisilf