-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,29 @@ | ||
import { messageTest } from '../../../pages/messages_fixture'; | ||
|
||
messageTest.describe('Long Term', () => { | ||
messageTest('US Message long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
messageTest('@US Message long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_US_LONG_TERM', amount: 29, offer: 'PAY_LATER_LONG_TERM' }); | ||
const messageIFrame = await loadMessage(); | ||
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('US Message long term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
messageTest('@US Message long term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_US_LONG_TERM', amount: 100, offer: 'PAY_LATER_LONG_TERM' }); | ||
const messageIFrame = await loadMessage(); | ||
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('US Message long term checkout', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
messageTest('@US Message long term checkout', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_US_LONG_TERM_CHECKOUT', amount: 100, offer: 'PAY_LATER_LONG_TERM' }); | ||
const messageIFrame = await loadMessage(); | ||
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('@DE Message long term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_LONG_TERM', amount: 100, offer: 'PAY_LATER_LONG_TERM' }); | ||
const messageIFrame = await loadMessage(); | ||
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('@DE Message long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_LONG_TERM', amount: 29, offer: 'PAY_LATER_LONG_TERM' }); | ||
const messageIFrame = await loadMessage(); | ||
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,55 @@ | ||
import { messageTest } from '../../../pages/messages_fixture'; | ||
|
||
messageTest.describe('Multi Messages', () => { | ||
messageTest('US long term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
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 }) => { | ||
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 }) => { | ||
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 }) => { | ||
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 }) => { | ||
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']); | ||
}); | ||
// DE | ||
messageTest('@DE multi qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_MULTI', amount: 200, offer: 'PAY_LATER_SHORT_TERM' }); | ||
const messageIframe = await loadMessage(); | ||
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
|
||
messageTest('@DE multi non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_MULTI', amount: 29, offer: 'PAY_LATER_SHORT_TERM' }); | ||
const messageIframe = await loadMessage(); | ||
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('@DE pay in 1 qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_MULTI', amount: 200, offer: 'PAY_LATER_PAY_IN_1' }); | ||
const messageIframe = await loadMessage(); | ||
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
messageTest('@DE pay in 1 non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => { | ||
await navigatePage({ account: 'DEV_DE_MULTI', amount: 1001.1, offer: 'PAY_LATER_PAY_IN_1' }); | ||
const messageIframe = await loadMessage(); | ||
await runAxeCoreScan(messageIframe, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']); | ||
}); | ||
}); |