diff --git a/e2e/src/eventsController.spec.ts b/e2e/src/eventsController.spec.ts index bf53dd7e..b45a3ce2 100644 --- a/e2e/src/eventsController.spec.ts +++ b/e2e/src/eventsController.spec.ts @@ -1,6 +1,7 @@ import { EventsController } from 'advanced-billing-sdk'; import { createClient, createInvalidClient } from './config'; import { createSubscription } from './utils/subscription'; +import { waitForSeconds } from './utils'; describe('Events Controller', () => { let eventsController: EventsController; @@ -35,6 +36,7 @@ describe('Events Controller', () => { test('should list events for subscription when the user sends a valid subscription id', async () => { const { subscriptionResponse } = await createSubscription({}); const subscriptId = subscriptionResponse?.subscription?.id; + await waitForSeconds(1); const listResponse = await eventsController.listSubscriptionEvents({ subscriptionId: subscriptId || 0, }); diff --git a/e2e/src/proformaInvoiceController/consolidateProformaInvoice.spec.ts b/e2e/src/proformaInvoiceController/consolidateProformaInvoice.spec.ts index 45c96440..1a625475 100644 --- a/e2e/src/proformaInvoiceController/consolidateProformaInvoice.spec.ts +++ b/e2e/src/proformaInvoiceController/consolidateProformaInvoice.spec.ts @@ -65,7 +65,7 @@ describe('Proforma Invoices Controller', () => { const [proformaInvoice] = listResponse.result.proformaInvoices || []; expect(listResponse.statusCode).toBe(200); expect(listResponse.result.proformaInvoices?.length).toBeGreaterThan(0); - expect(proformaInvoice.siteId).toBe(4511); + expect(proformaInvoice.siteId).toBe(86562); expect(proformaInvoice.customerId).toBe(customerResponse.customer.id); }); diff --git a/e2e/src/sitesController.spec.ts b/e2e/src/sitesController.spec.ts index 99952cc2..e20f00cf 100644 --- a/e2e/src/sitesController.spec.ts +++ b/e2e/src/sitesController.spec.ts @@ -7,12 +7,12 @@ describe('SitesController', () => { const sitesController = new SitesController(client); const response = await sitesController.readSite(); const expectedSite = { - id: 4511, - name: 'Typescript SDK Env', - subdomain: 'tp-sdk', + id: 86562, + name: 'Typescript SDK', + subdomain: 'ts-sdk', currency: 'USD', brighton_v1_enabled: false, - sellerId: 722159, + sellerId: 56887, nonPrimaryCurrencies: ['EUR', 'GBP'], relationshipInvoicingEnabled: true, customerHierarchyEnabled: false, @@ -31,7 +31,7 @@ describe('SitesController', () => { state: 'TX', zip: '78015', country: 'US', - name: 'Developer Experience', + name: 'Maxio Developer Experience', phone: '555 111 222', }, taxConfiguration: { diff --git a/e2e/src/webhooksController.spec.ts b/e2e/src/webhooksController.spec.ts index 224ee493..3c7a9d99 100644 --- a/e2e/src/webhooksController.spec.ts +++ b/e2e/src/webhooksController.spec.ts @@ -101,7 +101,7 @@ describe('webhooks Controller', () => { expect(result).toHaveLength(5); expect( urlsResponse.includes( - 'https://play.svix.com/in/e_94XdF-OwN3EaTKty4izJDWRAH3V/' + 'https://play.svix.com/in/e_Z1G9YLgAbB9Ze6wMTL4qEAE7j22/' ) ).toBeTruthy(); expect(urlsResponse.includes('https://www.google.com/')).toBeTruthy();