it.each() on onboarding tests
This commit is contained in:
parent
7934c9505b
commit
c0b33e4909
|
@ -37,11 +37,14 @@ const runOnboardingFlowTest = () => {
|
|||
await withRestApi.deleteAllShippingZones();
|
||||
});
|
||||
|
||||
it('can reset to default settings', async () => {
|
||||
await withRestApi.resetSettingsGroupToDefault('general');
|
||||
await withRestApi.resetSettingsGroupToDefault('products');
|
||||
await withRestApi.resetSettingsGroupToDefault('tax');
|
||||
});
|
||||
it.each(['general', 'products', 'tax'])(
|
||||
'can reset to default settings',
|
||||
async (settingsGroup) => {
|
||||
await withRestApi.resetSettingsGroupToDefault(
|
||||
settingsGroup
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
it('can start and complete onboarding when visiting the site for the first time.', async () => {
|
||||
|
|
|
@ -33,11 +33,14 @@ const runOnboardingFlowTest = () => {
|
|||
await withRestApi.deleteAllShippingZones();
|
||||
});
|
||||
|
||||
it('can reset to default settings', async () => {
|
||||
await withRestApi.resetSettingsGroupToDefault('general');
|
||||
await withRestApi.resetSettingsGroupToDefault('products');
|
||||
await withRestApi.resetSettingsGroupToDefault('tax');
|
||||
});
|
||||
it.each(['general', 'products', 'tax'])(
|
||||
'can reset to default settings',
|
||||
async (settingsGroup) => {
|
||||
await withRestApi.resetSettingsGroupToDefault(
|
||||
settingsGroup
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
it('can start and complete onboarding when visiting the site for the first time.', async () => {
|
||||
|
|
Loading…
Reference in New Issue