Skip to content

Commit

Permalink
announcments test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cod17828 committed Aug 13, 2024
2 parents 2fcbdab + 2c9b269 commit d37aaf6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion envs/envs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ module.exports = {
'@local6456': 'http://localhost:6456',
'@helpx_live': 'https://helpx-internal.stage.adobe.com',
'@dx_stage': 'https://stage--dx-partners--adobecom.hlx.live',
'@dme_stage': 'https://partners.stage.adobe.com',
'@dme_stage': 'https://stage--dme-partners--adobecom.hlx.live',
};
46 changes: 46 additions & 0 deletions tests/dme/signin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,52 @@ test.describe('MAPC sign in flow', () => {
signInPage = new SignInPage(page);
});

// test(`${features[0].name},${features[0].tags}`, async ({ page }) => {
// await test.step('Go to the home page', async () => {
// await page.goto(`${features[0].path}`);
// await page.waitForLoadState('domcontentloaded');
// await signInPage.signInButton.click();
// });
//
// await test.step('Sign in', async () => {
// await signInPage.signIn(page, `${features[0].data.partnerLevel}`);
// });
//
// await test.step('Verify redirection to restricted home after successful login', async () => {
// await signInPage.profileIconButton.waitFor({ state: 'visible', timeout: 20000 });
// const pages = await page.context().pages();
// await expect(pages[0].url()).toContain(`${features[0].data.expectedProtectedHomeURL}`);
// });
//
// await test.step('Logout', async () => {
// await signInPage.profileIconButton.click();
// await signInPage.logoutButton.click();
// });
//
// await test.step('Verify redirection to public page after logout', async () => {
// await signInPage.signInButton.waitFor({ state: 'visible', timeout: 10000 });
// const pages = await page.context().pages();
// await expect(pages[0].url())
// .toContain(`${features[0].data.expectedPublicPageURL}`);
// });
// });
//
// redirectionFeatures.forEach((feature) => {
// test(`${feature.name},${feature.tags}`, async ({ page, context }) => {
// const newTab = await context.newPage();
// const newTabPage = new SignInPage(newTab);
// await signInPage.verifyRedirectAfterLogin({
// page,
// expect,
// newTab,
// newTabPage,
// baseURL: feature.baseURL,
// partnerLevel: feature.data.partnerLevel,
// path: feature.path,
// expectedToSeeInURL: feature.data.expectedToSeeInURL,
// });
// });
// });
// test(`${features[0].name},${features[0].tags}`, async ({ page }) => {
// await test.step('Go to the home page', async () => {
// await page.goto(`${features[0].path}`);
Expand Down

0 comments on commit d37aaf6

Please sign in to comment.