Skip to content

Commit 46c3d58

Browse files
committed
Merge branch 'next-39285/fix-locator-assertion' into 'trunk'
NEXT-39285 - fix locator assertion See merge request shopware/6/product/platform!15499
2 parents da79328 + af3495b commit 46c3d58

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/acceptance/tests/Account/CommercialCustomerRegistration.spec.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { test } from '@fixtures/AcceptanceTest';
22

33
test('As a new customer, I must be able to register as a commercial customer in the Storefront.', { tag: '@Registration' }, async ({
44
ShopCustomer,
5-
ShopAdmin,
65
StorefrontAccountLogin,
76
StorefrontAccount,
87
IdProvider,
@@ -12,11 +11,13 @@ test('As a new customer, I must be able to register as a commercial customer in
1211
const uuid = IdProvider.getIdPair().uuid;
1312
const customer = { email: uuid + '@test.com', vatRegNo: uuid + '-VatId' };
1413
const setAccountType = 'core.loginRegistration.showAccountTypeSelection';
15-
await ShopAdmin.attemptsTo(SetSystemConfigValues({ [setAccountType]: true }, { [setAccountType]: false }));
14+
await ShopCustomer.attemptsTo(SetSystemConfigValues({ [setAccountType]: true }, { [setAccountType]: false }));
1615

1716
await ShopCustomer.goesTo(StorefrontAccountLogin.url());
1817
await StorefrontAccountLogin.accountTypeSelect.selectOption('Commercial');
1918
await ShopCustomer.attemptsTo(Register(customer, true));
2019
await ShopCustomer.expects(StorefrontAccount.page.getByText(customer.email, { exact: true })).toBeVisible();
21-
await ShopCustomer.expects(StorefrontAccount.page.getByText(customer.vatRegNo)).toBeVisible();
20+
await ShopCustomer.expects(StorefrontAccount.page.getByText('shopware - Operations VAT Reg')).toBeVisible();
21+
await ShopCustomer.expects(StorefrontAccount.page.getByText('shopware - Operations VAT Reg')).toContainText(customer.vatRegNo);
22+
2223
});

0 commit comments

Comments
 (0)