//= require govuk/multivariate-test

/*jslint browser: true,
 *  indent: 2,
 *  white: true
 */
/*global $, GOVUK */
$(function () {

  GOVUK.taxDiscBetaPrimary = function () {
    $('.primary-apply').html($('#beta-primary').html());
    $('.secondary-apply').html($('#dvla-secondary').html());
  };

  if(window.location.href.indexOf("/tax-disc") > -1) {
    new GOVUK.MultivariateTest({
      name: 'tax-disc-beta',
      customVarIndex: 20,
      cohorts: {
        tax_disc_beta_control: { weight: 50, callback: function () { } }, //50%
        tax_disc_beta: { weight: 50, callback: GOVUK.taxDiscBetaPrimary } //50%
      }
    });
  }
});

//= require govuk/multivariate-test

/*jslint browser: true,
 *  indent: 2,
 *  white: true
 */
/*global $, GOVUK */
$(function () {

  GOVUK.taxDiscBetaPrimary = function () {
    $('.primary-apply').html($('#beta-primary').html());
    $('.secondary-apply').html($('#dvla-secondary').html());
  };

  if(window.location.href.indexOf("/tax-disc") > -1) {
    new GOVUK.MultivariateTest({
      name: 'tax-disc-beta',
      customVarIndex: 20,
      cohorts: {
        tax_disc_beta_control: { weight: 1, callback: function () { } }, //~100%
        tax_disc_beta: { weight: 0, callback: GOVUK.taxDiscBetaPrimary } //~0%
      }
    });
  }
});

Increase weight of Tax Disc Beta AB to 100%
Increase weight of Tax Disc Beta AB to 100%

This shows the beta option as the most prominent option to the majority
of users.