-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #814 from google/fix/bad-setup-proxy-import
fix: Bad import in proxy setup page
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,4 @@ | |
/assets/vendor/* | ||
/dist/* | ||
/tests/backstop/html_report/* | ||
/tests/qunit/* | ||
/vendor/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { visitAdminPage } from '@wordpress/e2e-test-utils'; | ||
|
||
describe( 'Site Kit set up flow for the first time', () => { | ||
it( 'renders a splash page for proxy set up when no GCP credentials are provided', async () => { | ||
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' } ); | ||
await expect( page ).toMatchElement( '.googlesitekit-start-setup', { href: /^https:\/\/sitekit.withgoogle.com\/site-management\/setup\/\?/i } ); | ||
} ); | ||
} ); | ||
|