Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
malwilley committed Feb 11, 2025
1 parent 85a287e commit 7e7450f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions static/app/views/alerts/create.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('ProjectAlertsCreate', function () {
await waitFor(() => {
expect(wrapper.router.replace).toHaveBeenCalledWith(
expect.objectContaining({
pathname: '/organizations/org-slug/alerts/new/metric',
pathname: '/organizations/org-slug/alerts/new/metric/',
query: {
aggregate: 'count()',
dataset: 'events',
Expand Down Expand Up @@ -364,9 +364,9 @@ describe('ProjectAlertsCreate', function () {
expect(metric.startSpan).toHaveBeenCalledWith({name: 'saveAlertRule'});

await waitFor(() => {
expect(wrapper.router.push).toHaveBeenCalledWith({
pathname: '/organizations/org-slug/alerts/rules/project-slug/1/details/',
});
expect(wrapper.router.push).toHaveBeenCalledWith(
'/organizations/org-slug/alerts/rules/project-slug/1/details/'
);
});
});

Expand Down Expand Up @@ -419,9 +419,9 @@ describe('ProjectAlertsCreate', function () {
expect(metric.startSpan).toHaveBeenCalledWith({name: 'saveAlertRule'});

await waitFor(() => {
expect(wrapper.router.push).toHaveBeenCalledWith({
pathname: '/organizations/org-slug/alerts/rules/project-slug/1/details/',
});
expect(wrapper.router.push).toHaveBeenCalledWith(
'/organizations/org-slug/alerts/rules/project-slug/1/details/'
);
});
});

Expand Down Expand Up @@ -468,9 +468,9 @@ describe('ProjectAlertsCreate', function () {
expect(metric.startSpan).toHaveBeenCalledWith({name: 'saveAlertRule'});

await waitFor(() => {
expect(wrapper.router.push).toHaveBeenCalledWith({
pathname: '/organizations/org-slug/alerts/rules/project-slug/1/details/',
});
expect(wrapper.router.push).toHaveBeenCalledWith(
'/organizations/org-slug/alerts/rules/project-slug/1/details/'
);
});
});

Expand Down Expand Up @@ -514,9 +514,9 @@ describe('ProjectAlertsCreate', function () {
expect(metric.startSpan).toHaveBeenCalledWith({name: 'saveAlertRule'});

await waitFor(() => {
expect(wrapper.router.push).toHaveBeenCalledWith({
pathname: '/organizations/org-slug/alerts/rules/project-slug/1/details/',
});
expect(wrapper.router.push).toHaveBeenCalledWith(
'/organizations/org-slug/alerts/rules/project-slug/1/details/'
);
});
});
});
Expand Down

0 comments on commit 7e7450f

Please sign in to comment.