Skip to content

Commit 8a68ebb

Browse files
committed
chore: remove old pricing alert
1 parent 8452940 commit 8a68ebb

File tree

5 files changed

+0
-89
lines changed

5 files changed

+0
-89
lines changed

cypress/e2e/cloud/createOrg.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ describe('Free account', () => {
227227
})
228228

229229
describe('PAYG account', () => {
230-
beforeEach(() => {
231-
cy.disableClickThroughAnnouncement()
232-
})
233-
234230
it('can create new orgs, if there are orgs left in the quota', () => {
235231
setupTest({accountType: 'pay_as_you_go', canCreateOrgs: true})
236232

cypress/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ import {
6969
selectScriptFieldOrTag,
7070
scriptsLoginWithFlags,
7171
createScript,
72-
disableClickThroughAnnouncement,
7372
} from './support/commands'
7473

7574
declare global {
@@ -146,7 +145,6 @@ declare global {
146145
selectScriptFieldOrTag: typeof selectScriptFieldOrTag
147146
scriptsLoginWithFlags: typeof scriptsLoginWithFlags
148147
createScript: typeof createScript
149-
disableClickThroughAnnouncement: typeof disableClickThroughAnnouncement
150148
}
151149
}
152150
}

cypress/support/commands.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,17 +1540,6 @@ export const createTaskFromEmpty = (
15401540
cy.getByTestID('task-form-offset-input').type(offset)
15411541
}
15421542

1543-
export const disableClickThroughAnnouncement = () => {
1544-
const announcementState = {
1545-
pricingClickThroughAnnouncement: 'dismissed',
1546-
}
1547-
1548-
window.localStorage.setItem(
1549-
'clickThroughAnnouncement',
1550-
JSON.stringify(announcementState)
1551-
)
1552-
}
1553-
15541543
/* eslint-disable */
15551544
// notification endpoints
15561545
Cypress.Commands.add('createEndpoint', createEndpoint)
@@ -1561,12 +1550,6 @@ Cypress.Commands.add('createCheck', createCheck)
15611550
// alert group
15621551
Cypress.Commands.add('createAlertGroup', createAlertGroup)
15631552

1564-
// click through announcements
1565-
Cypress.Commands.add(
1566-
'disableClickThroughAnnouncement',
1567-
disableClickThroughAnnouncement
1568-
)
1569-
15701553
// assertions
15711554
Cypress.Commands.add('fluxEqual', fluxEqual)
15721555

src/billing/components/PayAsYouGo/PayAsYouGo.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Libraries
22
import React, {FC} from 'react'
3-
import {useSelector} from 'react-redux'
43

54
// Components
65
import {
@@ -19,15 +18,8 @@ import CancellationPanel from 'src/billing/components/PayAsYouGo/CancellationPan
1918
import NotificationPanel from 'src/billing/components/PayAsYouGo/NotificationPanel'
2019
import InvoiceLoadingWrapper from 'src/billing/components/AssetLoading/InvoiceWrapper'
2120
import BillingInfoWrapper from 'src/billing/components/AssetLoading/BillingInfoWrapper'
22-
import {PricingAlert} from 'src/billing/components/PayAsYouGo/PricingAlert'
23-
24-
// Utils
25-
import {selectCurrentIdentity} from 'src/identity/selectors'
2621

2722
const BillingPayAsYouGo: FC = () => {
28-
const {account} = useSelector(selectCurrentIdentity)
29-
const isDirectSignup = account.billingProvider === 'zuora'
30-
3123
return (
3224
<FlexBox
3325
direction={FlexDirection.Column}
@@ -36,7 +28,6 @@ const BillingPayAsYouGo: FC = () => {
3628
>
3729
<BillingInfoWrapper>
3830
<>
39-
{isDirectSignup && <PricingAlert />}
4031
<PlanTypePanel />
4132
<Panel>
4233
<Panel.Header testID="past-invoices--header">

src/billing/components/PayAsYouGo/PricingAlert.tsx

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)