diff --git tests/e2e/specs/hello.test.js tests/e2e/specs/hello.test.js
index 038957883b..b3289de86e 100644
|
|
|
1 | | import { visitAdminPage } from '@wordpress/e2e-test-utils'; |
| 1 | import { visitAdminPage,createURL } from '@wordpress/e2e-test-utils'; |
2 | 2 | |
3 | 3 | describe( 'Hello World', () => { |
4 | 4 | it( 'Should load properly', async () => { |
… |
… |
describe( 'Hello World', () => { |
9 | 9 | expect( nodes.length ).not.toEqual( 0 ); |
10 | 10 | } ); |
11 | 11 | } ); |
| 12 | describe( 'Default Contents' , () => { |
| 13 | it( 'Should return HTTP 200 when user goto the "Hello world" post.' , async () => { |
| 14 | const response = await page.goto( createURL( '/' , 'p=1' ) ) |
| 15 | expect( response._status ).toEqual( 200 ) |
| 16 | } ) |
| 17 | it( 'Should return HTTP 200 when user goto the "Sample Page" page.' , async () => { |
| 18 | const response = await page.goto( createURL( '/' , 'p=2' ) ) |
| 19 | expect( response._status ).toEqual( 200 ) |
| 20 | } ) |
| 21 | it( 'Should return HTTP 404 when user goto unknown page' , async () => { |
| 22 | const response = await page.goto( createURL( '/' , 'p=404' ) ) |
| 23 | expect( response._status ).toEqual( 404 ) |
| 24 | } ) |
| 25 | } ) |
| 26 | No newline at end of file |