Skip to content

Commit

Permalink
Fix Applications view tests to update language
Browse files Browse the repository at this point in the history
  • Loading branch information
joepavitt committed Jan 3, 2025
1 parent eab02cf commit 13dbf0f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
</label>
<span v-if="!isSearching" class="message">
This Application currently has no
<router-link :to="{name: 'ApplicationDevices', params: {team_slug: team.slug, id: application.id}}" class="ff-link">attached Remote Instances</router-link>
.
<router-link :to="{name: 'ApplicationDevices', params: {team_slug: team.slug, id: application.id}}" class="ff-link">attached Remote Instances</router-link>.
</span>
<span v-else class="message">
No device matches your criteria.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
</label>
<span v-if="!isSearching" class="message">
This Application currently has no
<router-link :to="{name: 'ApplicationInstances', params: {team_slug: team.slug, id: application.id}}" class="ff-link">
attached Hosted Instances
</router-link>
.
<router-link :to="{name: 'ApplicationInstances', params: {team_slug: team.slug, id: application.id}}" class="ff-link">attached Hosted Instances</router-link>.
</span>
<span v-else class="message">
No instance matches your criteria.
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/frontend/cypress/tests/applications/overview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ describe('FlowForge - Applications', () => {

cy.contains('My app')
cy.contains('My empty app description')
cy.contains('This Application currently has no attached Node-RED Instances .')
cy.contains('This Application currently has no attached devices .')
cy.contains('This Application currently has no attached Hosted Instances.')
cy.contains('This Application currently has no attached Remote Instances.')
})

it('can list application instances', () => {
Expand Down Expand Up @@ -1245,7 +1245,7 @@ describe('FlowForge - Applications', () => {
{
index: 0,
label: 'Edit Details',
dialogTitle: 'Update Device',
dialogTitle: 'Update Remote Instance',
dialogDataEl: 'team-device-create-dialog'
},
{
Expand All @@ -1257,7 +1257,7 @@ describe('FlowForge - Applications', () => {
{
index: 2,
label: 'Regenerate Configuration',
dialogTitle: 'Device Configuration',
dialogTitle: 'Device Agent Configuration',
dialogDataEl: 'team-device-config-dialog',
dialogCancelButtonSelector: '.ff-dialog-actions > button.ff-btn--secondary'
},
Expand Down

0 comments on commit 13dbf0f

Please sign in to comment.