Skip to content

Commit

Permalink
Tile selection option includes form value
Browse files Browse the repository at this point in the history
  • Loading branch information
Pezmc committed Dec 21, 2023
1 parent 4e37f1e commit be20a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class="ff-tile-selection-option"
:style="{'--ff-tile-selection-color': color || null}"
tabindex="0"
:data-form="`tile-selection-option-${value}`"
@click="select(false)"
@keydown.space.prevent="select(true)"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ describe('FlowForge - Application - DevOps Pipelines', () => {
cy.get('[data-action="add-stage"]').click()
})

cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option:contains("Device")').click()
cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option[data-form="tile-selection-option-device"]').click()

cy.get('[data-form="stage-name"] input[type="text"]').type('Stage 1')

Expand Down Expand Up @@ -511,7 +511,7 @@ describe('FlowForge - Application - DevOps Pipelines', () => {
cy.get(`[data-el="pipelines-list"] [data-el="pipeline-row"]:contains("${PIPELINE_NAME}")`).within(() => {
cy.get('[data-action="add-stage"]').click()
})
cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option:contains("Device")').not(':contains("Group")').click()
cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option[data-form="tile-selection-option-device"]').click()

cy.get('[data-form="stage-name"] input[type="text"]').type('Stage 2')

Expand Down Expand Up @@ -627,7 +627,7 @@ describe('FlowForge - Application - DevOps Pipelines', () => {
cy.get('[data-action="add-stage"]').click()
})

cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option:contains("Device Group")').click()
cy.get('[data-form="stage-type"]').find('.ff-tile-selection-option[data-form="tile-selection-option-device-group"]').click()

cy.get('[data-form="stage-name"] input[type="text"]').type('Stage 2')
// stage-action should not be present for device group
Expand Down

0 comments on commit be20a0c

Please sign in to comment.