diff --git a/readme.txt b/readme.txt index 4a85fc6..af7b793 100644 --- a/readme.txt +++ b/readme.txt @@ -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 diff --git a/tests/auth.setup.ts b/tests/auth.setup.ts index 4801619..6b237f0 100644 --- a/tests/auth.setup.ts +++ b/tests/auth.setup.ts @@ -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 }); }); diff --git a/tests/event-post-references.spec.ts b/tests/event-post-references.spec.ts index ebda67b..03305a6 100644 --- a/tests/event-post-references.spec.ts +++ b/tests/event-post-references.spec.ts @@ -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(); });