Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
Skip the whole suite for unsupported locales (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Apr 25, 2018
1 parent 7465b55 commit 7a73887
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions specs-i18n/search-wordpress-on-google.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ function doGoogleAdSearch( search_params ) {
this.timeout( mochaTimeOut );
this.bailSuite( true );

test.before( function() {
if ( locale === 'tr' || locale === 'ar' || locale === 'zh-tw' ) {
this.skip( 'Currently no advertising in this locale' );
}
} );

test.beforeEach( function() {
driver.manage().deleteAllCookies();
driverManager.deleteLocalStorage( driver );
} );

test.it( 'Google search contains our ad', function() {
if ( locale === 'tr' || locale === 'ar' || locale === 'zh-tw' ) {
this.skip( 'Currently no advertising in this locale' );
}

const googleFlow = new GoogleFlow( driver, 'desktop' );
const that = this;
googleFlow.search( search_params, test_data ).then( () => {
Expand Down

0 comments on commit 7a73887

Please sign in to comment.