/**
 * WordPress dependencies
 */
import { deactivatePlugin, visitAdminPage } from '@wordpress/e2e-test-utils';

/**
 * Internal dependencies
 */
import { resetSiteKit } from '../utils';

describe( 'Site Kit set up flow for the first time', () => {
	afterEach( async () => {
		await resetSiteKit();
	} );

	it( 'renders a splash page for proxy set up when no GCP credentials are provided', async () => {
		await deactivatePlugin( 'e2e-tests-gcp-credentials-plugin' );
		await visitAdminPage( 'admin.php', 'page=googlesitekit-splash' );

		await page.waitForSelector( '.googlesitekit-start-setup' );

		await expect( page ).toMatchElement( '.googlesitekit-setup__title', { text: 'The Site Kit plugin is active but requires setup' } );
		await expect( page ).toMatchElement( '.googlesitekit-start-setup', { text: 'Start setup' } );
	} );
} );


@@ -823,16 +823,163 @@
 p' %7D );%0A
+%09%09await expect( page ).toMatchElement( '.googlesitekit-start-setup', %7B href: /%5Ehttps:%5C/%5C/sitekit.withgoogle.com%5C/site-management%5C/setup%5C/%5C?/i %7D );%0A
 %09%7D );%0A%7D 

Add href test to auth proxy tests