Skip to content

Commit

Permalink
test: added a wait to MTMOODLE-90, flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dadalid-at-wiris committed Aug 23, 2024
1 parent b76b6df commit a91c2c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/behat/atto_validateSwitchBetweenEditors.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Feature: MathType and ChemType editor switch
And I press "MathType" in "Page content" field in Atto editor
And I wait until MathType editor is displayed
And I set MathType formula to '<math><mfrac><mn>1</mn><msqrt><mn>2</mn><mi>&#x3c0;</mi></msqrt></mfrac></math>'
And I wait "1" seconds
And I press accept button in MathType Editor
And I press "Save and display"
And I wait "1" seconds
Expand All @@ -50,13 +51,13 @@ Feature: MathType and ChemType editor switch
And I press "ChemType" in "Page content" field in Atto editor
And I wait until MathType editor is displayed
And I set MathType formula to '<math><mi mathvariant="normal">H</mi><mn>2</mn><mi mathvariant="normal">O</mi></math>'
And I wait "1" seconds
And I press accept button in MathType Editor
And I press "Save and display"
And I wait "1" seconds
Then I wait until Wirisformula formula exists
Then ChemType formula should exist
And Wirisformula should has height 19 with error of 2

@javascript @3.x @3.x_atto @4.0 @4.0_atto
Scenario: MTMOODLE-90 - Change from ChemType editor to MathType Editor
And I am on "Course 1" course homepage with editing mode on
Expand Down

0 comments on commit a91c2c5

Please sign in to comment.