Skip to content

Commit

Permalink
Updated tests to WP 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
zonia3000 committed Nov 20, 2024
1 parent a2e45cf commit 0ec9781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: zonia3000
Tags: events, registration, form, waiting list
Requires at least: 6.6
Tested up to: 6.6
Tested up to: 6.7
Stable tag: 0.1.0
Requires PHP: 8.2
License: GPLv3 or later
Expand Down
2 changes: 1 addition & 1 deletion tests/auth.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ setup('Admin authentication', async ({ page }) => {
await page.goto('/wp-login.php');
await page.getByRole('textbox', { name: 'Username or Email Address' }).fill('admin');
await page.getByRole('textbox', { name: 'Password' }).fill('password');
await page.getByText('Log In').click();
await page.getByRole('button', { name: 'Log In' }).click();
await page.context().storageState({ path: adminAuthStateFile });
});
4 changes: 2 additions & 2 deletions tests/event-post-references.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ test('Event referenced in posts', async ({ page, context, request }) => {
await test.step('Add third event to one post and then unpublish the post', async () => {
postId5 = await addEventToPost(postTitle5, eventName3);
await page.reload();
await page.getByLabel('Change post status: Published').click();
await page.getByLabel('DraftNot ready to publish.').check();
await page.getByLabel('Change status: Published').click();
await page.getByText('Draft').check();
await page.getByRole('button', { name: 'Save', exact: true }).click();
await expect(page.getByText('Post reverted to draft').first()).toBeVisible();
});
Expand Down

0 comments on commit 0ec9781

Please sign in to comment.