@@ -316,11 +316,8 @@ public void KeyboardInput_InvertSquaredSevenEightNine()
316
316
Assert . AreEqual ( "square (9)" , page . CalculatorResults . GetCalculatorExpressionText ( ) ) ; //verifies squared hotkey
317
317
}
318
318
319
- // Ignore this test and add a new test KeyboardInput_PercentSquareRootBackspaceNegateOneZero below
320
- // to avoid the issue of decimal keyboard input
321
319
[ TestMethod ]
322
320
[ Priority ( 1 ) ]
323
- [ Ignore ]
324
321
public void KeyboardInput_PercentSquareRootBackspaceDecimalNegateOneZero ( )
325
322
{
326
323
//Verifies the %, square root, backspace, decimal, negate, 1, and 0 button
@@ -348,34 +345,6 @@ public void KeyboardInput_PercentSquareRootBackspaceDecimalNegateOneZero()
348
345
Assert . AreEqual ( "9.9" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; //verifies calculation with decimal point and negative number
349
346
}
350
347
351
- [ TestMethod ]
352
- [ Priority ( 1 ) ]
353
- public void KeyboardInput_PercentSquareRootBackspaceNegateOneZero ( )
354
- {
355
- //Verifies the %, square root, backspace, negate, 1, and 0 button
356
- CalculatorApp . EnsureCalculatorHasFocus ( ) ;
357
- CalculatorApp . Window . SendKeys ( "100" ) ;
358
- CalculatorApp . Window . SendKeys ( Keys . Backspace ) ;
359
- Assert . AreEqual ( "10" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; // verifies using the 1 key, the 0 key, and the backspace key
360
- CalculatorApp . Window . SendKeys ( Keys . Add ) ;
361
- CalculatorApp . EnsureCalculatorHasFocus ( ) ;
362
- CalculatorApp . Window . SendKeys ( Keys . Shift + "5" + Keys . Shift ) ;
363
- Assert . AreEqual ( "1" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; //verifies percent calculation
364
- Assert . AreEqual ( "10 + 1" , page . CalculatorResults . GetCalculatorExpressionText ( ) ) ; //verifies percent hotkey
365
- CalculatorApp . Window . SendKeys ( Keys . Shift ) ;
366
- CalculatorApp . Window . SendKeys ( Keys . Shift + "5" + Keys . Shift ) ;
367
- CalculatorApp . Window . SendKeys ( Keys . Shift ) ;
368
- CalculatorApp . Window . SendKeys ( Keys . Shift + "2" + Keys . Shift ) ;
369
- Assert . AreEqual ( "0.3162277660168379" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; //verifies square root calculation
370
- Assert . AreEqual ( "10 + √(0.1)" , page . CalculatorResults . GetCalculatorExpressionText ( ) ) ; //verifies 2√x hotkey
371
- CalculatorApp . Window . SendKeys ( "1" ) ;
372
- CalculatorApp . Window . SendKeys ( Keys . Shift + "5" + Keys . Shift ) ;
373
- CalculatorApp . Window . SendKeys ( Keys . F9 ) ;
374
- Assert . AreEqual ( "-0.1" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; //verifies negate hotkey
375
- page . StandardOperators . EqualButton . Click ( ) ;
376
- Assert . AreEqual ( "9.9" , page . CalculatorResults . GetCalculatorResultText ( ) ) ; //verifies calculation with decimal point and negative number
377
- }
378
-
379
348
[ TestMethod ]
380
349
[ Priority ( 1 ) ]
381
350
public void KeyboardInput_MemoryHotkeys ( )
0 commit comments