<commit_before>const { get, set } = require('lodash')

const { client } = require('nightwatch-cucumber')
const { defineSupportCode } = require('cucumber')
const { getUid } = require('../../../helpers/uuid')

const companySearchPage = `${process.env.QA_HOST}/search/companies` // TODO move these urls out into a url world object
const dashboardPage = `${process.env.QA_HOST}/`

defineSupportCode(({ When, Then }) => {
  const Company = client.page.Company()
  const Search = client.page.Search()
  const Location = client.page.Location()

  When(/^I navigate to the companies (.+) page$/, async function (pageName) { // TODO please use work in Location (remove this)
    const tag = `@${pageName}`

    await Location
      .section.localNav
      .waitForElementPresent(tag)
      .click(tag)
  })

  When(/^a "UK private or public limited company" is created$/, async function () {
    await client
      .url(companySearchPage)
<commit_msg>Remove redundant step<commit_after>const { get, set } = require('lodash')

const { client } = require('nightwatch-cucumber')
const { defineSupportCode } = require('cucumber')
const { getUid } = require('../../../helpers/uuid')

const companySearchPage = `${process.env.QA_HOST}/search/companies` // TODO move these urls out into a url world object
const dashboardPage = `${process.env.QA_HOST}/`

defineSupportCode(({ When, Then }) => {
  const Company = client.page.Company()
  const Search = client.page.Search()

  When(/^a "UK private or public limited company" is created$/, async function () {
    await client
      .url(companySearchPage)

{'fraction_non_alphanumeric': 0.14663310258023915, 'fraction_numerical': 0.0, 'mean_word_length': 3.9074074074074074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5526397', 'n_tokens_mistral': 477, 'n_tokens_neox': 468, 'n_words': 134}