Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doccloud page sanity Gnav tests #389

Merged
merged 40 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
27cd861
CC Merchtable block automation
sigadamvenkata Jan 22, 2024
545c4eb
Merge branch 'adobecom:main' into main
sigadamvenkata Feb 5, 2024
c3bcf46
CC sticky promo bar, promo with close action automated test cases
sigadamvenkata Feb 5, 2024
fe79af2
Merge branch 'main' of https://github.com/sigadamvenkata/nala
sigadamvenkata Feb 5, 2024
fbcfd35
Merge branch 'adobecom:main' into main
sigadamvenkata Feb 12, 2024
c4c046d
Merge branch 'adobecom:main' into main
sigadamvenkata Feb 16, 2024
080e758
CC Regression automated cases for media rounded corners, breadcrumb f…
sigadamvenkata Feb 16, 2024
336c9d5
Update roundedcorners-mediablock.test.js
sigadamvenkata Feb 16, 2024
3a2d440
Merge branch 'adobecom:main' into main
sigadamvenkata Feb 17, 2024
1a13140
Merge branch 'adobecom:main' into main
sigadamvenkata Mar 1, 2024
b9bcd2e
CC home page tabs, fragment reference , merch pod AU tests
sigadamvenkata Mar 1, 2024
c481811
Merge branch 'adobecom:main' into main
sigadamvenkata Mar 7, 2024
b593d6d
Merge branch 'adobecom:main' into main
sigadamvenkata Apr 16, 2024
f52321b
CC , CCT product pages sanity checks automation for EN
sigadamvenkata Apr 16, 2024
1253c73
Merge branch 'adobecom:main' into main
sigadamvenkata Apr 18, 2024
53550c0
Merge branch 'adobecom:main' into main
sigadamvenkata Apr 19, 2024
dd88f7f
CC Tier1 locales production sanity tests
sigadamvenkata Apr 19, 2024
30c8806
Update productionsanity.spec.js
sigadamvenkata Apr 22, 2024
3f88021
Update productionsanity.page.js
sigadamvenkata Apr 22, 2024
eccf705
Update productionsanity.test.js
sigadamvenkata Apr 22, 2024
de9b3ed
Merge branch 'adobecom:main' into main
sigadamvenkata Apr 23, 2024
cc68735
CC page Accordion features regression automated cases
sigadamvenkata Apr 23, 2024
271560a
Update accordion.test.js
sigadamvenkata Apr 29, 2024
0a38fe6
Update accordion.test.js
sigadamvenkata Apr 29, 2024
5a00b5d
Merge branch 'main' into main
amauch-adobe Apr 29, 2024
8c1fb53
Merge branch 'adobecom:main' into main
sigadamvenkata May 19, 2024
8a8e5af
Merge branch 'adobecom:main' into main
sigadamvenkata May 24, 2024
3693ae2
Merge branch 'adobecom:main' into main
sigadamvenkata Jun 3, 2024
267bcaf
CC Firefly integration tests
sigadamvenkata Jun 3, 2024
0918687
Update firefly.test.js
sigadamvenkata Jun 4, 2024
c7ab8cd
Update firefly.test.js
sigadamvenkata Jun 4, 2024
3704cbf
Update firefly.test.js
sigadamvenkata Jun 4, 2024
44dda1f
Update firefly.test.js
sigadamvenkata Jun 4, 2024
7bff5ee
Merge branch 'adobecom:main' into main
sigadamvenkata Jun 5, 2024
6101e7d
OST price fixes
sigadamvenkata Jun 5, 2024
fea6fad
Merge branch 'adobecom:main' into main
sigadamvenkata Jun 13, 2024
074841f
Merge branch 'adobecom:main' into main
sigadamvenkata Jun 19, 2024
a132750
Merge branch 'adobecom:main' into main
sigadamvenkata Jun 25, 2024
e6f35b7
Doccloud pages gnav sanity test
sigadamvenkata Jul 3, 2024
8f66e46
Merge branch 'adobecom:main' into main
sigadamvenkata Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 166 additions & 0 deletions features/feds/prodSanity/dcpagessanity.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
module.exports = {
name: 'documentcloud pages',
features: [
{
tcid: '0',
name: '@USDCAcrobat',
path: '/acrobat.html',
tags: '@DCSanity @USDCAcrobat-sanity',
country: 'United States',
},
{
tcid: '1',
name: '@USDCSign',
path: '/sign.html',
tags: '@DCSanity @USDCSign-sanity',
country: 'United States',
},
{
tcid: '2',
name: '@UKDCAcrobat',
path: '/uk/acrobat.html',
tags: '@DCSanity @UKDCAcrobat-sanity',
country: 'United kingdom',
},
{
tcid: '3',
name: '@FRDCActobat',
path: '/fr/acrobat.html',
tags: '@DCSanity @FRDCAcrobat-sanity',
country: 'France',
},
{
tcid: '4',
name: '@DEDCSanity',
path: '/de/acrobat.html',
tags: '@DCSanity @DEDCAcrobat-sanity',
country: 'German',
},
{
tcid: '5',
name: '@JPDCSanity',
path: '/jp/acrobat.html',
tags: '@DCSanity @JPDCAcrobat-sanity',
country: 'Japanese',
},
{
tcid: '6',
name: '@SGDCSanity',
path: '/sg/acrobat.html',
tags: '@DCSanity @SGDCAcrobat-sanity',
country: 'Singapore',
},
{
tcid: '7',
name: '@AUDCSanity',
path: '/au/acrobat.html',
tags: '@DCSanity @AUDCAcrobat-sanity',
country: 'Australia',
},
{
tcid: '8',
name: '@IEDCSanity',
path: '/ie/acrobat.html',
tags: '@DCSanity @IEDCAcrobat-sanity',
country: 'Ireland',
},
{
tcid: '9',
name: '@ESDCSanity',
path: '/es/acrobat.html',
tags: '@DCSanity @ESDCAcrobat-sanity',
country: 'Espana',
},
{
tcid: '10',
name: '@DKDCSanity',
path: '/dk/acrobat.html',
tags: '@DCSanity @DKAcrobat-sanity',
country: 'Denmark',
},
{
tcid: '11',
name: '@BEENDCSanity',
path: '/be_en/acrobat.html',
tags: '@DCSanity @BEENDCAcrobat-sanity',
country: 'Belgium',
},
{
tcid: '12',
name: '@AFRICADCSanity',
path: '/africa/acrobat.html',
tags: '@DCSanity @AFRICADCAcrobat-sanity',
country: 'Africa',
},
{
tcid: '13',
name: '@MXDCSanity',
path: '/mx/acrobat.html',
tags: '@DCSanity @MXDCAcrobat-sanity',
country: 'Mexico',
},
{
tcid: '14',
name: '@LADCSanity',
path: '/la/acrobat.html',
tags: '@DCSanity @LADCAcrobat-sanity',
country: 'Latinamerica',
},
{
tcid: '15',
name: '@CADCSanity',
path: '/ca/acrobat.html',
tags: '@DCSanity @CADCAcrobat-sanity',
country: 'Canada',
},
{
tcid: '16',
name: '@HUDCSanity',
path: '/hu/acrobat.html',
tags: '@DCSanity @HUDCAcrobat-sanity',
country: 'Hungary',
},
{
tcid: '17',
name: '@NLDCSanity',
path: '/nl/acrobat.html',
tags: '@DCSanity @NLDCAcrobat-sanity',
country: 'Netherlands',
},
{
tcid: '18',
name: '@FIDCSanity',
path: '/fi/acrobat.html',
tags: '@DCSanity @FIDCAcrobat-sanity',
country: 'Finland',
},
{
tcid: '19',
name: '@SEDCSanity',
path: '/se/acrobat.html',
tags: '@DCSanity @SEDCAcrobat-sanity',
country: 'Sweden',
},
{
tcid: '20',
name: '@INDCSanity',
path: '/in/acrobat.html',
tags: '@DCSanity @INDCAcrobat-sanity',
country: 'India',
},
{
tcid: '21',
name: '@NZDCSanity',
path: '/nz/acrobat.html',
tags: '@DCSanity @NZDCAcrobat-sanity',
country: 'Newzeland',
},
{
tcid: '22',
name: '@KRDCSanity',
path: '/kr/acrobat.html',
tags: '@DCSanity @KRDCAcrobat-sanity',
country: 'Korea',
},
],
};
54 changes: 54 additions & 0 deletions selectors/feds/feds.documentcloudsanity.page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// import { expect, test } from '@playwright/test';
import { expect } from '@playwright/test';

export default class doccloudpagessanity {
constructor(page) {
this.page = page;

// Geo model close element
this.geoRoutingClose = page.locator('.dexter-CloseButton').last();

// Acrobat MagaManu, Locale Nav elements
this.adobeBranding = page.locator('.feds-logo').first();
this.gnavComplete = page.locator('.gnavTopnav');
this.fedsNav = this.gnavComplete.locator('#feds-topnav').first();
this.localNav = this.fedsNav.locator('//ul[@daa-lh="localnav"]');
this.localNavDefaultHeading = page.locator('.feds-navLink-text--default').first();
this.localnavDefaultDisablFocusNavElement = page.locator('//a[@daa-ll="Adobe_Acrobat-1"]').first();
this.featuresNavLink = page.locator('feds-navLink-text--default').nth(29);
this.comparePlansNavLink = page.locator('feds-navLink-text--default').nth(37);
this.reourcesNavLink = page.locator('feds-navLink-text--default').nth(38);
this.learnAndHelpNavLink = page.locator('feds-navLink-text--default').nth(39);
this.freeTrialNavLink = page.locator('feds-navLink-text--default').nth(40);

// Unav Elements
this.appSwithcer = page.locator('#unav-app-switcher');
this.userSignin = page.locator('#unav-profile');

// Footer links
this.footerProductsColumn = page.locator('//a[@daa-ll="Products-1" and @role="heading"]');
this.footerBusinessColumn = page.locator('//a[@daa-ll="For_business-1" and @role="heading"]');
this.footerECCommunity = page.locator('//a[@daa-ll="Blogs_Community-1" and @role="heading"]');
this.footerSupportColumn = page.locator('//a[@daa-ll="Support-1" and @tabindex="-1"]');
this.footerAdobeColumn = page.locator('//a[@daa-ll="Adobe-1" and @tabindex="-1"]');
this.footerCCLink = page.locator('//a[@class="feds-navLink" and @daa-ll="Creative_Cloud-1"]');
this.footerECLink = page.locator('//a[@class="feds-navLink" and @daa-ll="What_is_Experience_Cloud-1"]');
this.footerHelpxLink = page.locator('//a[@class="feds-navLink" and @daa-ll="Help_Center-2"]');
}

async CloseGeoModel() {
console.log('close geo model popup');
await this.page.waitForTimeout(3000);
await this.geoRoutingClose.click();
}

async ValidateGnav() {
console.log('validate Gnav Elements');
await this.page.waitForLoadState('networkidle');
const elements = [this.adobeBranding, this.gnavComplete, this.fedsNav, this.localNav,
this.localNavDefaultHeading, this.localnavDefaultDisablFocusNavElement, this.featuresNavLink,
this.comparePlansNavLink];
const promises = elements.map(async (element) => { expect(element).toBeTruthy(); });
await Promise.all(promises);
}
}
Loading
Loading