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

feat: sync various improvements #25

Merged
merged 1 commit into from
Feb 21, 2022
Merged

feat: sync various improvements #25

merged 1 commit into from
Feb 21, 2022

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Feb 21, 2022

No description provided.

@OrKoN OrKoN merged commit 3d68273 into main Feb 21, 2022
@OrKoN OrKoN deleted the improve-runner branch February 21, 2022 08:23
(el: Element, newValue: string) => {
/* c8 ignore next 10 */
const input = el as HTMLInputElement;
if (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we invert this so the shorter code comes first?

@@ -41,13 +41,16 @@ export class PuppeteerRunnerExtension extends RunnerExtension {

const targetPage = await getTargetPageForStep(browser, page, step, timeout);
let targetFrame: Frame | null = null;
if (!targetPage) {
if (!targetPage && step.target) {
const frames = page.frames();
for (const f of frames) {
if (f.isOOPFrame() && f.url() === step.target) {
targetFrame = f;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we break after the first frame found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants