Skip to content

Commit

Permalink
event publish test name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag11 committed Jan 25, 2024
1 parent 302fbad commit 0e5578c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/e2e/admin-tests/gatherpress-front-end-login.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test.describe('e2e test for login to front end guests', () => {

//TODO- Replace the event creation test with the POST api request.

test('The Event menu item should be preloaded after clicking Add New button', async ({
test.only('To publish the event post', async ({

Check failure on line 14 in test/e2e/admin-tests/gatherpress-front-end-login.spec.js

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Replace `⏎↹↹page,⏎↹` with `·page·`
page,
}) => {
await login({ page, username: 'testuser1' });
Expand All @@ -35,13 +35,10 @@ test.describe('e2e test for login to front end guests', () => {

await page.screenshot({ path: 'add-new-event.png' });

await page
.getByRole('button', { name: 'Publish', exact: true })
.click();
await page.getByRole('button',{ name: 'Publish', exact: true }).click();

Check failure on line 38 in test/e2e/admin-tests/gatherpress-front-end-login.spec.js

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Replace `.getByRole('button',{·name:·'Publish',·exact:·true·})` with `⏎↹↹↹.getByRole('button',·{·name:·'Publish',·exact:·true·})⏎↹↹↹`

await page
.getByLabel('Editor publish')
.getByRole('button', { name: 'Publish', exact: true })
.getByLabel('Editor publish').getByRole('button',{ name: 'Publish', exact: true })

Check failure on line 41 in test/e2e/admin-tests/gatherpress-front-end-login.spec.js

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Replace `.getByRole('button',` with `⏎↹↹↹.getByRole('button',·`
.click();

await page
Expand Down

0 comments on commit 0e5578c

Please sign in to comment.