Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes approach for create e2e group, adds clean old e2e groups #1809

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

Iloveall
Copy link
Collaborator

@Iloveall Iloveall commented Oct 15, 2024

Description

Improves creating of E2E groups, adds clear groups scenario. I've put criteria to remove generated groups that older than 1hr, as I don't think so the same e2e will work during this time (Before we spoke to remove groups from prev day)

Notes (out of scope, known isues, hints for reviewing code, ...) (optional)

Fixtures approach needs to be reorganise in separated PR as it will cause a lot of path changes in files

Test cases

@Iloveall Iloveall marked this pull request as draft October 15, 2024 11:48
@smadbe
Copy link
Contributor

smadbe commented Oct 15, 2024

@Iloveall Iloveall force-pushed the feature/improve-e2e-groups branch 2 times, most recently from 4e95ad0 to e0e4c01 Compare October 18, 2024 08:24
@smadbe
Copy link
Contributor

smadbe commented Oct 18, 2024

@Iloveall Iloveall force-pushed the feature/improve-e2e-groups branch from e0e4c01 to baff037 Compare October 18, 2024 08:46
await leftNavFirstChild.click();

for (const groupName of groupNamesForRemove) {
const leftNavGroupLocator = page.locator('p-tree').getByText(groupName).first();
Copy link
Collaborator Author

@Iloveall Iloveall Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I'm not using group locator from collection is that the collection keeps position of element (nth(n)), and so if new group will be created during process (so left menu is updated with new positions) it will be failed. That's why need to get locator by name again

@smadbe
Copy link
Contributor

smadbe commented Oct 18, 2024

@Iloveall Iloveall marked this pull request as ready for review October 18, 2024 08:59
@Iloveall Iloveall requested a review from smadbe October 18, 2024 09:00
@Iloveall Iloveall merged commit fc6102e into master Oct 21, 2024
12 checks passed
@Iloveall Iloveall deleted the feature/improve-e2e-groups branch October 21, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants