Skip to content

test: scroll swap timeslots button into view before clicking - #3719

Merged
rjsparks merged 1 commit into
ietf-tools:feat/bs5from
painless-security:jennifer/scroll-to-swap-days
Mar 22, 2022
Merged

test: scroll swap timeslots button into view before clicking#3719
rjsparks merged 1 commit into
ietf-tools:feat/bs5from
painless-security:jennifer/scroll-to-swap-days

Conversation

@jennifer-richards

Copy link
Copy Markdown
Member

Fixes #3718

Comment thread ietf/meeting/tests_js.py
Comment on lines +481 to +485
self.driver.execute_script(
'window.scrollBy({top: %s, behavior: "instant"})' % (
future_swap_days_buttons[1].location['y'] - navbar.size['height']
)
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does self.scroll_to_element not work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, unfortunately. I think that only scrolls until the element is in the viewport. The session panel is still floating over it, intercepting clicks.

(Sorry to repeat, but this showed up as a top level comment rather than a reply to your question)

@rjsparks
rjsparks merged commit 4e437a9 into ietf-tools:feat/bs5 Mar 22, 2022
@jennifer-richards
jennifer-richards deleted the jennifer/scroll-to-swap-days branch March 22, 2022 18:53
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants