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(headless): supporting standard lifecycle events #5632

Merged
merged 12 commits into from
Sep 19, 2024

Conversation

dwisiswant0
Copy link
Member

Proposed changes

Updated headless actions:

  • waitload

New headless actions:

  • waitdom
  • waitfcp
  • waitfmp
  • waitidle
  • waitstable

Close #5631

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
…entNameLoad`

also rename `Page.WaitLoad` to `Page.WaitStable` method.

Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
call `ActionWaitFMP` instead of `WaitLoad` before take screenshot

Signed-off-by: Dwi Siswanto <git@dw1.io>
Copy link
Member

@Ice3man543 Ice3man543 left a comment

Choose a reason for hiding this comment

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

lgtm, minor observation

pkg/protocols/headless/engine/page_actions.go Outdated Show resolved Hide resolved
Signed-off-by: Dwi Siswanto <git@dw1.io>
// NOTE(dwisiswant0): Mapping `ActionWaitLoad` to `Page.WaitStable`,
// just in case waiting for the `proto.PageLifecycleEventNameLoad` event
// doesn't meet expectations.
// case ActionWaitLoad, ActionWaitStable:
Copy link
Member

Choose a reason for hiding this comment

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

Dead code? We can remove it if it's redundant.

Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

@ehsandeep ehsandeep merged commit 4cd065d into dev Sep 19, 2024
9 of 12 checks passed
@ehsandeep ehsandeep deleted the dwisiswant0/feat/headless/std-lifecycle-events branch September 19, 2024 13:31
@dwisiswant0 dwisiswant0 restored the dwisiswant0/feat/headless/std-lifecycle-events branch September 20, 2024 17:23
@dwisiswant0 dwisiswant0 deleted the dwisiswant0/feat/headless/std-lifecycle-events branch September 20, 2024 17:24
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.

[FEATURE] Improved Page Lifecycle Event Handling in Headless Template Actions
4 participants