<commit_before>should = require 'should'
{wd40, browser} = require('../wd40')

url = 'http://localhost:3001'

describe 'Home page (not logged in)', ->
  before (done) ->
    wd40.init ->
      browser.get url, done

  before (done) =>
    wd40.getText 'body', (err, text) =>
      @bodyText = text
      done()

  it 'tells me about the platform for data science', =>
    @bodyText.toLowerCase().should.include 'data science'

  it 'gives me a link to sign up for an account', (done) ->
    browser.elementByPartialLinkText 'Sign up', (err, link) ->
      should.exist link
      link.getAttribute 'href', (err, href) ->
        href.should.include '/pricing'
        done()

  it 'tells me about ScraperWiki Data Services', =>
    @bodyText.toLowerCase().should.include 'data services'

  after (done) ->
    browser.quit ->
      done()
<commit_msg>Fix home not logged in test<commit_after>should = require 'should'
{wd40, browser} = require('../wd40')

url = 'http://localhost:3001'

describe 'Home page (not logged in)', ->
  before (done) ->
    wd40.init ->
      browser.get url, done

  before (done) =>
    wd40.getText 'body', (err, text) =>
      @bodyText = text
      done()

  it 'tells me about the platform for data science', =>
    @bodyText.toLowerCase().should.include 'data science'

  it 'gives me a link to sign up for an account', (done) ->
    browser.elementByPartialLinkText 'Sign up', (err, link) ->
      should.exist link
      link.getAttribute 'href', (err, href) ->
        href.should.include '/pricing'
        done()

  it 'tells me about ScraperWiki Data Services', =>
    @bodyText.toLowerCase().should.include 'services'

  after (done) ->
    browser.quit ->
      done()

{'fraction_non_alphanumeric': 0.14611338398597312, 'fraction_numerical': 0.014026884862653419, 'mean_word_length': 2.829977628635347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '349916', 'n_tokens_mistral': 557, 'n_tokens_neox': 536, 'n_words': 166}