adopt new lint rules
This commit is contained in:
parent
6be03bd02f
commit
b8b330b210
|
|
@ -170,7 +170,7 @@ function innerAsLocators(factory: LocatorFactory, parsed: ParsedSelector, isFram
|
||||||
if (['xpath', 'css'].includes(lastPart.name))
|
if (['xpath', 'css'].includes(lastPart.name))
|
||||||
extendedTokens.push(factory.generateLocator(base, 'frame-locator', stringifySelector({ parts: [lastPart] }, true)));
|
extendedTokens.push(factory.generateLocator(base, 'frame-locator', stringifySelector({ parts: [lastPart] }, true)));
|
||||||
|
|
||||||
lastTokens.splice(0, lastTokens.length, ...extendedTokens)
|
lastTokens.splice(0, lastTokens.length, ...extendedTokens);
|
||||||
nextBase = 'frame-locator';
|
nextBase = 'frame-locator';
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue