-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/alerts-config-check
- Loading branch information
Showing
47 changed files
with
349 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
describe('Billing Limits', () => { | ||
it('Show no limits set and allow user to set one', () => { | ||
cy.intercept('GET', '/api/billing/', { fixture: 'api/billing/billing.json' }).as('getBilling') | ||
cy.visit('/organization/billing') | ||
cy.wait('@getBilling') | ||
|
||
cy.intercept('PATCH', '/api/billing/', (req) => { | ||
req.reply({ | ||
statusCode: 200, | ||
body: { | ||
...require('../fixtures/api/billing/billing.json'), | ||
custom_limits_usd: { product_analytics: 100 }, | ||
}, | ||
}) | ||
}).as('patchBilling') | ||
|
||
cy.get('[data-attr="billing-limit-input-wrapper-product_analytics"]').scrollIntoView() | ||
cy.get('[data-attr="billing-limit-not-set-product_analytics"]').should('be.visible') | ||
cy.contains('Set a billing limit').click() | ||
cy.get('[data-attr="billing-limit-input-product_analytics"]').clear().type('100') | ||
cy.get('[data-attr="save-billing-limit-product_analytics"]').click() | ||
cy.wait('@patchBilling') | ||
cy.get('[data-attr="billing-limit-set-product_analytics"]').should( | ||
'contain', | ||
'You have a $100 billing limit set' | ||
) | ||
}) | ||
|
||
it('Show existing limit and allow user to change it', () => { | ||
cy.intercept('GET', '/api/billing/', (req) => { | ||
req.reply({ | ||
statusCode: 200, | ||
body: { | ||
...require('../fixtures/api/billing/billing.json'), | ||
custom_limits_usd: { product_analytics: 100 }, | ||
}, | ||
}) | ||
}).as('getBilling') | ||
cy.visit('/organization/billing') | ||
cy.wait('@getBilling') | ||
|
||
cy.intercept('PATCH', '/api/billing/', (req) => { | ||
req.reply({ | ||
statusCode: 200, | ||
body: { | ||
...require('../fixtures/api/billing/billing.json'), | ||
custom_limits_usd: { product_analytics: 200 }, | ||
}, | ||
}) | ||
}).as('patchBilling') | ||
|
||
cy.get('[data-attr="billing-limit-input-wrapper-product_analytics"]').scrollIntoView() | ||
cy.get('[data-attr="billing-limit-set-product_analytics"]').should('be.visible') | ||
cy.contains('Edit limit').click() | ||
cy.get('[data-attr="billing-limit-input-product_analytics"]').clear().type('200') | ||
cy.get('[data-attr="save-billing-limit-product_analytics"]').click() | ||
cy.wait('@patchBilling') | ||
cy.get('[data-attr="billing-limit-set-product_analytics"]').should( | ||
'contain', | ||
'You have a $200 billing limit set' | ||
) | ||
}) | ||
|
||
it('Show existing limit and allow user to remove it', () => { | ||
cy.intercept('GET', '/api/billing/', (req) => { | ||
req.reply({ | ||
statusCode: 200, | ||
body: { | ||
...require('../fixtures/api/billing/billing.json'), | ||
custom_limits_usd: { product_analytics: 100 }, | ||
}, | ||
}) | ||
}).as('getBilling') | ||
cy.visit('/organization/billing') | ||
cy.wait('@getBilling') | ||
|
||
cy.intercept('PATCH', '/api/billing/', { fixture: 'api/billing/billing.json' }).as('patchBilling') | ||
|
||
cy.get('[data-attr="billing-limit-input-wrapper-product_analytics"]').scrollIntoView() | ||
cy.get('[data-attr="billing-limit-set-product_analytics"]').should('be.visible') | ||
cy.contains('Edit limit').click() | ||
cy.get('[data-attr="remove-billing-limit-product_analytics"]').click() | ||
cy.get('[data-attr="billing-limit-not-set-product_analytics"]').should('be.visible') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+74 KB
...napshots__/components-playerinspector-itemevent--group-identify-event--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74 KB
...apshots__/components-playerinspector-itemevent--group-identify-event--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6.63 KB
(97%)
frontend/__snapshots__/scenes-app-dashboards--edit--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12 Bytes
(100%)
frontend/__snapshots__/scenes-app-dashboards--show--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.11 KB
(98%)
frontend/__snapshots__/scenes-app-feature-flags--new-feature-flag--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.26 KB
(98%)
frontend/__snapshots__/scenes-app-feature-flags--new-feature-flag--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21.5 KB
(100%)
frontend/__snapshots__/scenes-other-settings--settings-project--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21.2 KB
(100%)
frontend/__snapshots__/scenes-other-settings--settings-project--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+22 KB
(100%)
...pshots__/scenes-other-settings--settings-project-with-replay-features--dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21.6 KB
(100%)
...shots__/scenes-other-settings--settings-project-with-replay-features--light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.