Skip to content

Commit

Permalink
Try waiting for 1 second to see if that fixes flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Sep 25, 2024
1 parent d15d914 commit 40df6e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ Cypress.Commands.add( 'createTweetOEmbedPost', ( tweetUrl ) => {
title: postTitle,
beforeSave: () => {
cy.insertBlock( 'core/embed/twitter', 'Twitter' ).then( ( id ) => {
cy.wait( 1000 );

Check failure on line 279 in tests/cypress/support/commands.js

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

tests/cypress/support/commands.js#L279

[cypress/no-unnecessary-waiting] Do not wait for arbitrary time periods
cy.getBlockEditor()
.find( `#${ id } input[aria-label="Twitter URL"]` )
.click()
Expand Down

0 comments on commit 40df6e3

Please sign in to comment.