Skip to content

Commit

Permalink
Rename SinglePageDonationForm back to DonationForm
Browse files Browse the repository at this point in the history
- there is only 1 donation form for the donation page supported currently,
so it can keep the basic name

https://phabricator.wikimedia.org/T368525
  • Loading branch information
moiikana committed Sep 17, 2024
1 parent ecb6343 commit 01110bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import PersonalDataSectionDonationReceipt
from '@src/components/pages/donation_form/singlePageFormSections/PersonalDataSectionDonationReceipt.vue';
defineOptions( {
name: 'SinglePageDonationForm',
name: 'DonationForm',
} );
interface Props {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/donation_form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { createInitialBankDataValues, createInitialDonationAddressValues, create
import { createTrackFormErrorsPlugin } from '@src/store/track_form_errors_plugin';

import App from '@src/components/App.vue';
import DonationForm from '@src/components/pages/SinglePageDonationForm.vue';
import DonationForm from '@src/components/pages/DonationForm.vue';
import { ApiCityAutocompleteResource } from '@src/api/CityAutocompleteResource';
import { createFeatureFetcher } from '@src/util/FeatureFetcher';
import { ApiStreetAutocompleteResource } from '@src/api/StreetAutocompleteResource';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount, VueWrapper } from '@vue/test-utils';
import SinglePageDonationForm from '@src/components/pages/SinglePageDonationForm.vue';
import DonationForm from '@src/components/pages/DonationForm.vue';
import countries from '@src/../tests/data/countries';
import { AddressValidation } from '@src/view_models/Validation';
import { createFeatureToggle } from '@src/util/createFeatureToggle';
Expand All @@ -16,14 +16,14 @@ declare global {
}
}

describe( 'SinglePageDonationForm.vue', () => {
describe( 'DonationForm.vue', () => {

beforeEach( () => {
global.window.scrollTo = jest.fn();
} );

const getWrapper = ( store: Store<any> = createStore() ): { wrapper: VueWrapper<any>, store: Store<any> } => {
const wrapper = mount( SinglePageDonationForm, {
const wrapper = mount( DonationForm, {
props: {
assetsPath: '',
paymentAmounts: [ 5 ],
Expand Down

0 comments on commit 01110bc

Please sign in to comment.