Skip to content

Commit

Permalink
Fix 'move target out of bounds' errors
Browse files Browse the repository at this point in the history
These are new in Chrome 120.
  • Loading branch information
ragesoss committed Jan 2, 2024
1 parent 0f62f4a commit 6dd9bcd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions spec/features/timeline_editing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,11 @@
end

# Open edit mode for the third block
find(".week-1 .block-kind-#{Block::KINDS['milestone']}").hover
milestone_block = find(".week-1 .block-kind-#{Block::KINDS['milestone']}")
scroll_to milestone_block
sleep 0.5
milestone_block.hover

within ".week-1 .block-kind-#{Block::KINDS['milestone']}" do
find('.block__edit-block', match: :first).click
end
Expand Down Expand Up @@ -195,7 +198,9 @@
visit "/courses/#{course_with_timeline.slug}/timeline"

# Change the first block
find(".week-1 .block-kind-#{Block::KINDS['assignment']}").hover
assignment_block = find(".week-1 .block-kind-#{Block::KINDS['assignment']}")
scroll_to assignment_block
assignment_block.hover
sleep 0.5
within ".week-1 .block-kind-#{Block::KINDS['assignment']}" do
find('.block__edit-block', match: :first).click
Expand All @@ -204,7 +209,9 @@
end

# Change the third block
find(".week-1 .block-kind-#{Block::KINDS['milestone']}").hover
milestone_block = find(".week-1 .block-kind-#{Block::KINDS['milestone']}")
scroll_to milestone_block
milestone_block.hover
sleep 0.5
within ".week-1 .block-kind-#{Block::KINDS['milestone']}" do
find('.block__edit-block', match: :first).click
Expand Down

0 comments on commit 6dd9bcd

Please sign in to comment.