WordPress.org

Make WordPress Core

Opened 8 months ago

#48977 new enhancement

Add a new test case for E2E test

Reported by: hideokamoto Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: javascript Cc:

Description

Now the E2E test has only one case to test WordPress.
So we can add a new test case

Test case
WordPress has two default content.

  • Post "Hello world", post_id=1
  • Page: "Sample Page", post_id=2

So we can test to these page are these page exists.

Expect

  • localhost?p=1 -> should return HTTP200
  • localhost?p=2 -> should return HTTP200
  • localhost?p=404 -> should return HTTP404

Attachments (2)

48977.patch (1.1 KB) - added by hideokamoto 8 months ago.
E2E test code for the ticket
48977.2.patch (1.1 KB) - added by hideokamoto 8 months ago.
I forget to add any space with my code. It's new one.

Download all attachments as: .zip

Change History (2)

@hideokamoto
8 months ago

E2E test code for the ticket

@hideokamoto
8 months ago

I forget to add any space with my code. It's new one.

Note: See TracTickets for help on using tickets.