Skip to content

Commit

Permalink
increased driver sleep on Android to reduce test flakiness. (#28000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander authored Jan 13, 2021
1 parent 5565050 commit cfe936a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
import { blockNames } from './pages/editor-page';
import testData from './helpers/test-data';
import { isAndroid } from './helpers/utils';

describe( 'Gutenberg Editor File Block tests', () => {
it( 'should be able to add a file block', async () => {
Expand All @@ -15,7 +16,13 @@ describe( 'Gutenberg Editor File Block tests', () => {
const block = await editorPage.getFirstBlockVisible();

block.click();
await editorPage.driver.sleep( 1000 );

if ( isAndroid ) {
await editorPage.driver.sleep( 5000 );
} else {
await editorPage.driver.sleep( 1000 );
}

await editorPage.chooseMediaLibrary();

const html = await editorPage.getHtmlContent();
Expand Down

0 comments on commit cfe936a

Please sign in to comment.