Skip to content

Commit

Permalink
Merge pull request #4364 from FlowFuse/devops-missing-action
Browse files Browse the repository at this point in the history
Pipelines: Adds missing [data-action="pipeline-add"] on empty state button
  • Loading branch information
joepavitt committed Aug 9, 2024
2 parents bc9d6d4 + f168d6f commit 99ac40e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/application/Pipelines.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
params: { applicationId: application.id },
}"
:disabled="!featureEnabled"
data-action="pipeline-add"
>
<template #icon-left><PlusSmIcon /></template>
Add Pipeline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('FlowForge - Application - DevOps Pipelines', () => {
const PIPELINE_NAME = `My New Pipeline - ${Math.random().toString(36).substring(2, 7)}`

// Add pipeline
cy.get('[data-action="pipeline-add"]').click()
cy.get('[data-el="empty-state"] [data-action="pipeline-add"]').click()
cy.get('[data-form="pipeline-form"]').should('be.visible')

cy.get('[data-form="pipeline-name"] input').type(PIPELINE_NAME)
Expand Down Expand Up @@ -113,7 +113,7 @@ describe('FlowForge - Application - DevOps Pipelines', () => {
const PIPELINE_NAME = `My New Pipeline - ${Math.random().toString(36).substring(2, 7)}`

// Add pipeline
cy.get('[data-action="pipeline-add"]').click()
cy.get('[data-el="empty-state"] [data-action="pipeline-add"]').click()
cy.get('[data-form="pipeline-name"] input').type(PIPELINE_NAME)
cy.get('[data-action="create-pipeline"]').click()

Expand Down

0 comments on commit 99ac40e

Please sign in to comment.