text: const webdriver = require( 'selenium-webdriver' );
  
  const accessibilityCheck = require( '../../../helpers/accessibility-check' );
  const fetch = require( '../../../helpers/fetch' );
  const driver = require( '../../../helpers/driver' );
  const takeScreenshot = require( '../../../helpers/take-screenshot' );
  
  const By = webdriver.By;
  
  describe( 'The UK Nations and Regions HVC Wins page', function(){
  
  	beforeAll( function( done ){
  
  		fetch( '/uk-regions/north-west/non-hvc-wins/' ).then( takeScreenshot( 'uk-regions-hvc-wins' ) ).then( done );
  	} );
  
  	accessibilityCheck( 'uk-regions-hvc-wins' );
  
  	describe( 'Page heading', function(){
  
  		let heading;
  
  		beforeAll( function( done ){
  
  			driver.findElement( By.className( 'page-heading' ) ).then( ( headingElem ) => {
  
  				heading = headingElem;
  				done();
  			} );
  		} );
  
  		it( 'Should have the correct title', function( done ){
  
  			heading.getText().then( ( text ) => {
  
  				expect( text ).toEqual( 'North West UK Region' );
  				done();
  			} );
  		} );
  
  		it( 'Should have the correct tag', function( done ){
  
  			heading.getTagName().then( ( tagName ) => {
  
  				expect( tagName ).toEqual( 'h1' );
  				done();
  			} );
  		} );
  	} );
  
  	describe( 'Page Tab', function(){
  
  		it( 'Should have the correct tab active', function( done ){
  
  			driver.findElement( By.className( 'page-tabs_tab--active' ) ).then( ( tab ) => {
  
  				tab.getText().then( ( text ) => {
  
  					expect( text ).toEqual( 'Non HVC wins' );
  					done();
  				} );
  			} );
  		} );
  	} );
  } );
  