Skip to content

Conversation

@ellatrix
Copy link
Member

@ellatrix ellatrix commented Nov 2, 2018

Description

This PR gets rid of the timeouts we've been seeing in the undo e2e tests. The cause is the RECEIVE_BLOCKS action sometimes dispatching between two UPDATE_BLOCK_ATTRIBUTES actions. The RECEIVE_BLOCKS is not fully ignored: it does not create a new history record, but it does set the lastAction attribute. This causes shouldOverwriteState to return false where it shouldn't, because it compares the current and previous action.

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@ellatrix ellatrix added this to the 4.3 milestone Nov 2, 2018
@ellatrix ellatrix requested review from a team, aduth and mcsf November 2, 2018 11:11
Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

Looks good to me, just little suggestions. Awesome work, the times of restarting timed-out tests is over! 🎉

@ellatrix ellatrix mentioned this pull request Nov 2, 2018
4 tasks
@ellatrix ellatrix merged commit 47e66fb into master Nov 2, 2018
@ellatrix ellatrix deleted the fix/with-history branch November 2, 2018 12:08
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.

3 participants