/**
 * Created by pivotal on 5/19/17.
 */
require('dotenv').config()


describe('chrome extension is loaded properly when feature tests run', function () {
  beforeEach(function () {
    jasmine.getEnv().defaultTimeoutInterval = 1000000
  })

  it('creates a WWLTW chore in the backlog', function () {
    browser.setValue("[data-test='tracker-api-token'] input", process.env.TEST_PIVOTAL_TRACKER_TOKEN)
    browser.click('button=Submit')
    browser.pause(1000)
    browser.click('label=Test Project')
    browser.pause(1000)

    browser.url('https://www.pivotaltracker.com/signin')
    browser.setValue("#credentials_username", process.env.TEST_PIVOTAL_TRACKER_USERNAME)
    browser.click("#login_type_check_form input[type='submit']")
    browser.setValue("#credentials_password", process.env.TEST_PIVOTAL_TRACKER_PASSWORD )
    browser.click("#login_type_check_form input[type='submit']")
    browser.click("a=Test Project")
    browser.pause(1000)

    expect(browser.getText(".story_name*=WWLTW for the week of")).toMatch(/WWLTW for the week of \d{1,2}\/\d{1,2}/)
  })
})
/**
 * Created by pivotal on 5/19/17.
 */
require('dotenv').config()


describe('chrome extension is loaded properly when feature tests run', function () {
  it('creates a WWLTW chore in the backlog', function () {
    browser.setValue("[data-test='tracker-api-token'] input", process.env.TEST_PIVOTAL_TRACKER_TOKEN)
    browser.click('button=Submit')
    browser.pause(1000)
    browser.click('label=Test Project')
    browser.pause(1000)

    browser.url('https://www.pivotaltracker.com/signin')
    browser.setValue("#credentials_username", process.env.TEST_PIVOTAL_TRACKER_USERNAME)
    browser.click("#login_type_check_form input[type='submit']")
    browser.setValue("#credentials_password", process.env.TEST_PIVOTAL_TRACKER_PASSWORD )
    browser.click("#login_type_check_form input[type='submit']")
    browser.click("a=Test Project")
    browser.pause(1000)

    expect(browser.getText(".story_name*=WWLTW for the week of")).toMatch(/WWLTW for the week of \d{1,2}\/\d{1,2}/)
  })
})
Remove code overriding default jasmine timeout interval
Remove code overriding default jasmine timeout interval
