Skip to content

Commit

Permalink
reduce messaging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
perco12 committed Aug 26, 2024
1 parent d04a8e6 commit 707c5c7
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions tests/playwright/tests/sdk/messages/multi.spec.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
import { messageTest } from '../../../pages/messages_fixture';
// import { messageTest } from '../../../pages/messages_fixture';

messageTest.describe('Multi Messages', () => {
messageTest('US long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_MULTI', amount: 20001, offer: 'PAY_LATER_LONG_TERM' });
const messageIframe = await loadMessage();
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
// messageTest.describe('Multi Messages', () => {
// messageTest('US long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_MULTI', amount: 20001, offer: 'PAY_LATER_LONG_TERM' });
// const messageIframe = await loadMessage();
// await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });

messageTest('US long term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_MULTI', amount: 1501, offer: 'PAY_LATER_LONG_TERM' });
const messageIframe = await loadMessage();
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
// messageTest('US long term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_MULTI', amount: 1501, offer: 'PAY_LATER_LONG_TERM' });
// const messageIframe = await loadMessage();
// await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });

messageTest('US product list', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_MULTI', amount: 200, offer: '' });
const messageIframe = await loadMessage();
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
// messageTest('US product list', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_MULTI', amount: 200, offer: '' });
// const messageIframe = await loadMessage();
// await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });

messageTest('US short term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_MULTI', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
const messageIframe = await loadMessage();
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
// messageTest('US short term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_MULTI', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
// const messageIframe = await loadMessage();
// await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });

messageTest('US short term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_MULTI', amount: 200, offer: 'PAY_LATER_SHORT_TERM' });
const messageIframe = await loadMessage();
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
});
// messageTest('US short term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_MULTI', amount: 200, offer: 'PAY_LATER_SHORT_TERM' });
// const messageIframe = await loadMessage();
// await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });
// });

0 comments on commit 707c5c7

Please sign in to comment.