Skip to content

Commit

Permalink
run only against chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
perco12 committed Aug 26, 2024
1 parent b36c14e commit 9e57fae
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 109 deletions.
86 changes: 43 additions & 43 deletions playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,52 @@ module.exports = defineConfig({
...devices['Desktop Chrome'],
headless: true
}
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
headless: true
}
},
}
// {
// name: 'firefox',
// use: {
// ...devices['Desktop Firefox'],
// headless: true
// }
// },

{
name: 'webkit',
use: {
...devices['Desktop Safari'],
headless: true
}
},
/* Test against mobile viewports. */
{
name: 'Mobile Chrome',
use: {
...devices['Pixel 5']
}
},
// {
// name: 'webkit',
// use: {
// ...devices['Desktop Safari'],
// headless: true
// }
// },
// /* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: {
// ...devices['Pixel 5']
// }
// },

{
name: 'Mobile Safari',
use: {
...devices['iPhone 12']
}
},
// {
// name: 'Mobile Safari',
// use: {
// ...devices['iPhone 12']
// }
// },

/* Test against branded browsers. */
{
name: 'Microsoft Edge',
use: {
...devices['Desktop Edge'],
channel: 'msedge'
}
},
{
name: 'Google Chrome',
use: {
...devices['Desktop Chrome'],
channel: 'chrome'
}
}
// /* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: {
// ...devices['Desktop Edge'],
// channel: 'msedge'
// }
// },
// {
// name: 'Google Chrome',
// use: {
// ...devices['Desktop Chrome'],
// channel: 'chrome'
// }
// }
],
webServer: [
{
Expand Down
46 changes: 23 additions & 23 deletions tests/playwright/tests/sdk/messages/longTerm.spec.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
// import { messageTest } from '../../../pages/messages_fixture';
import { messageTest } from '../../../pages/messages_fixture';

// messageTest.describe('Long Term', () => {
// 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 }) => {
// 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 }) => {
// 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('US Message long term pl2go', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_LONG_TERM_PL2GO', amount: 29, offer: 'PAY_LATER_LONG_TERM' });
// const messageIFrame = await loadMessage();
// await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });
// });
messageTest.describe('Long Term', () => {
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 }) => {
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 }) => {
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('US Message long term pl2go', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_LONG_TERM_PL2GO', amount: 29, offer: 'PAY_LATER_LONG_TERM' });
const messageIFrame = await loadMessage();
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
});
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']);
});
});
30 changes: 15 additions & 15 deletions tests/playwright/tests/sdk/messages/shortTerm.spec.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { messageTest } from '../../../pages/messages_fixture';

messageTest.describe('Short Term', () => {
// messageTest('US Message short term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_SHORT_TERM', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
// const messageIFrame = await loadMessage();
// await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });
messageTest('US Message short term non qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_SHORT_TERM', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
const messageIFrame = await loadMessage();
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
messageTest('US Message short term qualifying', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_SHORT_TERM', amount: 100, offer: 'PAY_LATER_SHORT_TERM' });
const messageIFrame = await loadMessage();
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
// messageTest('US Message short term checkout', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_SHORT_TERM_CHECKOUT', amount: 100, offer: 'PAY_LATER_SHORT_TERM' });
// const messageIFrame = await loadMessage();
// await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });
// messageTest('US Message short term pl2go', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
// await navigatePage({ account: 'DEV_US_SHORT_TERM_PL2GO', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
// const messageIFrame = await loadMessage();
// await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
// });
messageTest('US Message short term checkout', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_SHORT_TERM_CHECKOUT', amount: 100, offer: 'PAY_LATER_SHORT_TERM' });
const messageIFrame = await loadMessage();
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
messageTest('US Message short term pl2go', async ({ navigatePage, loadMessage, runAxeCoreScan }) => {
await navigatePage({ account: 'DEV_US_SHORT_TERM_PL2GO', amount: 29, offer: 'PAY_LATER_SHORT_TERM' });
const messageIFrame = await loadMessage();
await runAxeCoreScan(messageIFrame, ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']);
});
});

0 comments on commit 9e57fae

Please sign in to comment.