title: Is it a good practice to place an assertion in the afterEach block?
body: <p>Environment: Protractor, jasmine, typescript</p>
  
  <p>I have several tests that have different setup and the same assertion.
  Is it a good practice to enter different steps in each <code>it</code> inside a <code>describe</code> and the <code>expect</code> assertion in the afterEach block?</p>
  
  <p>Example: 
  Form contains <code>phoneNumberField</code> and a <code>submitBtn</code>;</p>
  
  <p>Test 1: Enter too short number into <code>phoneNumberField</code> => Expect <code>submitBtn</code> to be disabled.</p>
  
  <p>Test 2: Enter text into <code>phoneNumberField</code> => Expect <code>submitBtn</code> to be disabled
  Example code:</p>
  
  <pre><code>describe('Invalid phone number =&gt; submitBtn disabled', () =&gt; {
  
      afterEach(() =&gt; {
          expect(submitBtn.isEnabled()).toBeFalsy();
      });
  
      it('Too short number input', () =&gt; {
          phoneNumberField.sendKeys('012');
      });
  
      it('Text input', () =&gt; {
          phoneNumberField.sendKeys('asdf');
      });
  });
  </code></pre>