title: Geb: Waiting/sleeping between tests
body: <p>Is there a way to wait a set amount of time between tests? I need a solution to compensate for server lag. When creating a record, it takes a little bit of time before the record is searchable in my environment.</p>
  
  <p>In the following code example, how would I wait 30 seconds between the first test and the second test and have no wait time between second test and third test?</p>
  
  <pre><code>    class MySpec extends GebReportingSpec {
          // First Test
          def "should create a record named myRecord"() {
              given:
              to CreateRecordsPage
  
              when:
              name_field = "myRecord"
  
              and:
              saveButton.click()
  
              then:
              at IndexPage
          }
  
          // Second Test
          def "should find record named myRecord"() {
              given:
              to SearchPage
  
              when:
              search_query = "myRecord"
  
              and:
              searchButton.click()
  
              then:
              // haven't figured this part out yet, but would look for "myRecord" on the results page
          }
  
          // Third Test
          def "should delete the record named myRecord"() {
              // do the delete
          }
      }
  </code></pre>