package controllers.change_of_address

import org.scalatest.WordSpec
import org.scalatest.Matchers
import org.scalatest.selenium.{HtmlUnit}

class AuthenticationIntegrationSpec extends WordSpec with Matchers with HtmlUnit {
  val host = "http://localhost:9000/"

  "Authentication Integration" should {
    "be presented" in {
      // Arrange & Act
      go to (host + "authentication")

      // Assert
      pageTitle should equal ("Change of keeper - authentication")
    }

    "go to next page after the button is clicked" in {
      // Arrange
      val validPIN = "123456"
      go to (host + "authentication")
      textField("PIN").value = validPIN

      // Act
      click on id("submit")

      // Assert
      pageTitle should equal ("Change of keeper - retrieve a vehicle record")
    }
  }
}
package controllers.change_of_address

import org.scalatest.WordSpec
import org.scalatest.Matchers
import org.scalatest.selenium.{HtmlUnit}

class AuthenticationIntegrationSpec extends WordSpec with Matchers with HtmlUnit {
  val host = "http://localhost:9000/"

  "Authentication Integration" should {
    "be presented" in {
      // Arrange & Act
      go to (host + "authentication")

      // Assert
      pageTitle should be ("Change of keeper - authentication")
    }

    "go to next page after the button is clicked" in {
      // Arrange
      val validPIN = "123456"
      go to (host + "authentication")
      textField("PIN").value = validPIN

      // Act
      click on id("submit")

      // Assert
      pageTitle should be ("Change of keeper - retrieve a vehicle record")
    }
  }
}
--- 
+++ 
@@ -13,7 +13,7 @@
       go to (host + "authentication")
 
       // Assert
-      pageTitle should be ("Change of keeper - authentication")
+      pageTitle should equal ("Change of keeper - authentication")
     }
 
     "go to next page after the button is clicked" in {
@@ -26,7 +26,7 @@
       click on id("submit")
 
       // Assert
-      pageTitle should be ("Change of keeper - retrieve a vehicle record")
+      pageTitle should equal ("Change of keeper - retrieve a vehicle record")
     }
   }
 }
Change matcher from 'be' to 'equal'
