Skip to content

Commit

Permalink
NTR - Fix e2e test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisGarding committed Jun 14, 2023
1 parent 5378b93 commit f9a38b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Tests/E2E/test/backend_tracking_url.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ test.describe('Tracking url testing', () => {
await page.hover('.customers--main');
await page.click('.customers--orders');

const popupCloseButtons = await page.$$('text=\'Schließen\'');
for (let i = 0; i < popupCloseButtons.length; i++) {
await popupCloseButtons[i].click();
}

await page.waitForSelector('.sprite-pencil');
const orders = await page.$$('.sprite-pencil');

Expand Down
5 changes: 4 additions & 1 deletion Tests/E2E/test/pay_with_acdc.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ test.describe('Pay with credit card', () => {

await expect(locators.paypalUnifiedErrorMessageContainer).toBeVisible();

await expect(page.locator('.paypal-unified--error >> .alert--content')).toHaveText(/.*Während der Sicherheitsüberprüfung Ihrer Kreditkarte ist etwas schief gelaufen. Bitte versuchen Sie es erneut.*/);
const messageContainer = await page.locator('.paypal-unified--error >> .alert--content');
await messageContainer.scrollIntoViewIfNeeded();

await expect(messageContainer).toHaveText(/.*Während der Sicherheitsüberprüfung Ihrer Kreditkarte ist etwas schief gelaufen. Bitte versuchen Sie es erneut.*/);
});
});

0 comments on commit f9a38b8

Please sign in to comment.