test scripts for event scenarios#713
Merged
mauteri merged 9 commits intoGatherPress:mainfrom Jul 1, 2024
Merged
Conversation
Contributor
Author
|
The test videos of creating event and perform the RSVP action |
prashantabellad
approved these changes
Jul 1, 2024
|
|
||
| }) | ||
|
|
||
| test('01-e2e test for publish the offline event', async({page})=>{ |
Contributor
There was a problem hiding this comment.
"to publish" instead of "for publish"
|
|
||
| const event_title = await page.getByLabel('Add title').fill(`online T-Event: ${currentDate}`); | ||
|
|
||
| await page.getByLabel('Block: Event Date').locator('div').nth(4).isVisible(); |
Contributor
There was a problem hiding this comment.
why 4th? There should not be any need to use nth()
| await page.getByRole('button', { name: 'Publish', exact: true }).click(); | ||
| await page.getByLabel('Editor publish').getByRole('button', { name: 'Publish', exact: true }).click(); | ||
|
|
||
| await page.getByText(`${event_title} is now live.`).isVisible({timeout:60000}) |
Contributor
There was a problem hiding this comment.
Please add comment what is being asserted
|
|
||
| await page.getByText('Attending').nth(1).isVisible({timeout:30000}); | ||
|
|
||
| await page.locator('.gatherpress-rsvp-response__items').first().isVisible(); |
Contributor
There was a problem hiding this comment.
Please add comment what is being asserted
| const currentDate = new Date().toISOString().split('T')[0]; // format YYYY-MM-DD | ||
| const event_title = await page.getByLabel('Add title').fill(`offline T-Event:${currentDate}`); | ||
|
|
||
| await page.getByLabel('Block: Event Date').locator('div').nth(4).isVisible(); |
Contributor
There was a problem hiding this comment.
why nth() is used?
mauteri
approved these changes
Jul 1, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
Test descriptions:
How to test the Change
Changelog Entry
Credits
@prashantabellad , @01Prayag
Checklist: