Skip to content

Commit

Permalink
fix: Update project directory create project button selector
Browse files Browse the repository at this point in the history
  • Loading branch information
blackheart-atlassian committed Mar 30, 2023
1 parent 816842b commit 8941477
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/e2e/utils/jira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ export const jiraAppUninstall = async (page: Page): Promise<Page> => {

export const jiraAddProject = async (page: Page): Promise<Page> => {
await page.goto(data.urls.projects);
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()
} else {
await (page.locator("button[data-test-id='global-pages.directories.projects-directory-v2.create-projects-button.button.button']")).click();
}
await (page.locator("button[aria-label='Scrum']")).click();
await (page.locator("button[data-testid='project-template-select-v2.ui.layout.screens.template-overview.template-overview-card.use-template-button.button']")).click();
await (page.locator("button[data-testid='project-template-select-v2.ui.layout.screens.project-types.footer.select-project-button-team-managed']")).click();
Expand Down

0 comments on commit 8941477

Please sign in to comment.