Skip to content

Commit

Permalink
corrected coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag11 committed Jan 23, 2024
1 parent e512270 commit 302fbad
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 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 @@ -7,11 +7,10 @@ test.describe('e2e test for login to front end guests', () => {
test.setTimeout(60000);
await page.setViewportSize({ width: 1920, height: 720 });
await page.waitForLoadState('networkidle');

});

//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 ({
page,
}) => {
Expand All @@ -28,25 +27,44 @@ test.describe('e2e test for login to front end guests', () => {
await page.getByLabel('Document Overview').click();

await page.getByLabel('List View').locator('div').nth(1).isVisible();

const eventTitle = await page
.getByLabel('Add title')
.fill('test event');
await page.getByLabel('Venue Selector').selectOption('33:online-event');

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

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

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

await page
.getByText({ eventTitle }, 'is now live.')
.isVisible({ timeout: 60000 });
});

test('verify that the user is able to login after click on RSVP >> login', async ({
page,
}) => {
await page.goto(devUrl);

await page.getByRole('heading', { name: 'Upcoming Events' }).isVisible();

await page
.getByRole('heading', { name: 'Upcoming Events' })
.isVisible();

await page.getByRole('link', { name: 'RSVP' }).click();

await page.getByText('Login', { exact: true }).click();

await login({ page, username: 'testuser1' });

await page.goto(devUrl, {timeout:120000});
await page.goto(devUrl, { timeout: 120000 });

await page.getByRole('link', { name: 'RSVP' }).click();

Expand Down

0 comments on commit 302fbad

Please sign in to comment.