Skip to content

Commit

Permalink
Remove name field from oneClickApps in favor of stackscript label
Browse files Browse the repository at this point in the history
  • Loading branch information
carrillo-erik committed Oct 16, 2024
1 parent abb8651 commit 4aad11e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ describe('OneClick Apps (OCA)', () => {
}

cy.findByTestId('one-click-apps-container').within(() => {
cy.findAllByLabelText(`Info for "${candidateApp.name}"`)
cy.findAllByLabelText(
`Info for "${getMarketplaceAppLabel(candidateStackScript.label)}"`
)
.first()
.scrollIntoView()
.should('be.visible')
Expand All @@ -95,7 +97,7 @@ describe('OneClick Apps (OCA)', () => {
});

ui.drawer
.findByTitle(candidateApp.name)
.findByTitle(getMarketplaceAppLabel(candidateStackScript.label))
.should('be.visible')
.within(() => {
cy.findByText(candidateApp.description).should('be.visible');
Expand Down
1 change: 0 additions & 1 deletion packages/manager/src/factories/stackscripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const oneClickAppFactory = Factory.Sync.makeFactory<OCA>({
},
description: 'A test app',
logo_url: 'nodejs.svg',
name: 'Test App',
summary: 'A test app',
website: 'https://www.linode.com',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ const getDoesMarketplaceAppMatchQuery = (
const searchableAppFields = [
String(app.stackscript.id),
app.stackscript.label,
app.details.name,
app.details.alt_name,
app.details.alt_description,
...app.details.categories,
Expand Down
Loading

0 comments on commit 4aad11e

Please sign in to comment.