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

fix: Update project directory create project button selector #2018

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

blackheart-atlassian
Copy link

What's in this PR?
e2e test update to conditionally check which version of project create button is present on the page.

Why
We're updating projects directory button selector as we're rolling out new experience.

Added feature flags
none

Affected issues
Jira Issues

How has this been tested?
e2e

@blackheart-atlassian blackheart-atlassian requested a review from a team as a code owner March 30, 2023 00:50
@blackheart-atlassian blackheart-atlassian force-pushed the BLU-000-update-project-directory-selector branch from f917f6a to 8941477 Compare March 30, 2023 02:19
@rachellerathbone
Copy link
Contributor

@blackheart-atlassian if you can fix the failed push / build check we'll be able to approve this and get it merged in.

await (page.locator("button[data-test-id='global-pages.directories.projects-directory-v2.create-projects-button.button.button']")).click();
const createProjectButtonV3 = page.locator("button[data-testid='global-pages.directories.projects-directory-v3.create-projects-button']");
if (await createProjectButtonV3.isVisible()) {
createProjectButtonV3.click()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
createProjectButtonV3.click()
await createProjectButtonV3.click();

@gxueatlassian
Copy link
Contributor

Hmm, I don't get how to resolve the conflicts. Need some helps :)

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.

5 participants