Skip to content

Commit

Permalink
test: finish and close test for picking a place from map
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed Aug 6, 2024
1 parent 1cbda36 commit 2e3c905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cypress/e2e/optimization.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ describe('Optimization component', () => {

cy.get('.edit-header-btn').should('not.exist')

// TODO: test closing by save button
cy.get('#map-view').click()
cy.get('[data-cy=save]').click()
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
@click="closeEditModal">{{$t('global.cancel')}}</v-btn>
</v-flex>
<v-flex text-xs-right xs12 sm3 md3 :class="{'ml-2': $vuetify.breakpoint.smAndDown}">
<v-btn :block="$lowResolution" color="success" :title="$t('global.save')" @click="saveItems">
<v-btn data-cy="save" :block="$lowResolution" color="success" :title="$t('global.save')" @click="saveItems">
{{$t('global.save')}}
<v-icon style="margin-left: 5px;">save</v-icon>
</v-btn>
Expand Down

0 comments on commit 2e3c905

Please sign in to comment.