How to use the testcafe.t.navigateTo function in testcafe

To help you get started, we’ve selected a few testcafe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hdorgeval / testcafe-starter / steps / i-navigate-to-the-testcafe-sample-page.ts View on Github external
export default async (): Promise => {
  // get the config that was injected into the fixture/test context by the feature
  const config: Config = getCurrentConfig(t);

  // eslint-disable-next-line @typescript-eslint/no-use-before-define
  ensureEnvIsSetupInConfigurationFile(config);
  if (config && config.env) {
    await t.navigateTo(config.env.url);
  }
};
github gentics / mesh-ui / testcafe / navigate.ts View on Github external
async function goToRoute(route: string) {
    await t.navigateTo(`/#${route}`);
}
github GravityPDF / gravity-pdf / tests / e2e / page-model / global-settings / general / general.js View on Github external
async navigatePdfEntries (text) {
    await t
      .navigateTo(`${baseURL}/wp-admin/admin.php?page=${text}`)
  }
}
github ovh / cds / ui / e2e / pages / login.ts View on Github external
async login(user: string, password: string) {
        await t
            .navigateTo(this.url)
            .typeText(this.userNameInput, user)
            .typeText(this.passwordInput, password)
            .click(this.loginButton)
            .expect(this.getLocation()).eql(config.baseUrl + '/home');
    }
}
github Hotell / react-tools-for-better-angular-apps / e2e / utils / browser.ts View on Github external
goTo(urlPath: string) {
    return t.navigateTo(`${this.baseURL}${urlPath}`);
  }
}