Skip to content

Commit

Permalink
Creative Cloud Scripts updated. (#442)
Browse files Browse the repository at this point in the history
* Illustrator Test Scripts added

* Illustrator Test Scripts updated as discussed

* Delete features/feds/locales/illustratorPage.json

This file no longer required for the new PR.

* Optimized the code as per review comments given

* 'Unav' and 'Creativity & Design Elements' methods updated

* Updated Illustrator methods in Selector Page

* Logics Updated

* Added mobile, iPad, and tablet methods, as well as test and feature files.

* Uplated Elements for Japan Local Web

* CC Scripts updated
  • Loading branch information
PavanKumarN8 authored Oct 3, 2024
1 parent 6fdbf47 commit 5ff742f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
15 changes: 6 additions & 9 deletions selectors/feds/feds.creativeCloudUnavSanity.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class CreativeCloudUnavSanity {
},
{
element: this.individuals,
conditions: { defaultVisibility: true, excludeCountries: ['Germany', 'France'] },
conditions: { defaultVisibility: true, excludeCountries: ['Germany', 'France', 'India'] },
},
{ element: this.business, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{
Expand All @@ -188,15 +188,14 @@ export default class CreativeCloudUnavSanity {
{ element: this.graphicDesign, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.Video, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.illustration, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.socialMedia, conditions: { defaultVisibility: true, excludeCountries: ['India', 'United States'] } },
{ element: this.threeDAndAR, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.pdf, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.aiOverviewCC, conditions: { defaultVisibility: true, excludeCountries: ['Japan'] } },
{ element: this.adobeFirefly, conditions: { defaultVisibility: true, excludeCountries: ['Japan'] } },
{ element: this.adobecom, conditions: { defaultVisibility: true } },
{ element: this.pdfAndESignatures, conditions: { defaultVisibility: true } },
{ element: this.marketingAndCommerce, conditions: { defaultVisibility: true } },
{ element: this.helpAndSupport, conditions: { defaultVisibility: true } },
{ element: this.adobecom, conditions: { defaultVisibility: true, excludeCountries: ['United Kingdom'] } },
{ element: this.pdfAndESignatures, conditions: { defaultVisibility: true, excludeCountries: ['United Kingdom'] } },
{ element: this.marketingAndCommerce, conditions: { defaultVisibility: true, excludeCountries: ['United Kingdom'] } },
{ element: this.helpAndSupport, conditions: { defaultVisibility: true, excludeCountries: ['United Kingdom'] } },
{ element: this.forGovernmentAgencies, conditions: { includeCountries: ['Japan'] } },
{ element: this.benifitsForCreativeCloudPaidMembers, conditions: { includeCountries: ['Japan'] } },
{ element: this.adobeFireflyCC, conditions: { includeCountries: ['Japan'] } },
Expand Down Expand Up @@ -383,7 +382,6 @@ export default class CreativeCloudUnavSanity {
{ element: this.whatIsCC, conditions: { defaultVisibility: true } },
{ element: this.photographers, conditions: { defaultVisibility: true } },
{ element: this.studentsAndTeachers, conditions: { defaultVisibility: true } },
{ element: this.individuals, conditions: { defaultVisibility: true, excludeCountries: ['Germany', 'France', 'Italy'] } },
{ element: this.business, conditions: { defaultVisibility: true } },
{ element: this.schoolsAndUniversities, conditions: { defaultVisibility: true } },
{ element: this.viewPlansAndPricing, conditions: { defaultVisibility: true } },
Expand Down Expand Up @@ -552,7 +550,7 @@ export default class CreativeCloudUnavSanity {
},
{
element: this.individuals,
conditions: { defaultVisibility: true, excludeCountries: ['Germany', 'France'] },
conditions: { defaultVisibility: true, excludeCountries: ['Germany', 'France', 'India'] },
},
{ element: this.business, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{
Expand All @@ -571,7 +569,6 @@ export default class CreativeCloudUnavSanity {
{ element: this.graphicDesign, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.Video, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.illustration, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.socialMedia, conditions: { defaultVisibility: true, excludeCountries: ['India', 'United States'] } },
{ element: this.threeDAndAR, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.pdf, conditions: { defaultVisibility: true, excludeCountries: ['India'] } },
{ element: this.aiOverviewCC, conditions: { defaultVisibility: true, excludeCountries: ['Japan'] } },
Expand Down
5 changes: 1 addition & 4 deletions tests/feds/creativeCloudUnavSanity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingCreativityAndDesign(features[0].country);
await creative.validatingExplore(features[0].country);
await creative.validatingLearnAndSupport();
await creative.closingPromoButton();
await creative.validatingFooter(features[0].country);
await creative.validatingBuyNowButton(features[0].buyNowUrl);
});
Expand Down Expand Up @@ -91,7 +90,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingProgram(features[4].country);
await creative.validatingSubjectArea(features[4].country);
await creative.validatingTrainingAndSupport(features[4].country);
await creative.closingPromoButton();
await creative.validatingFooter(features[4].country);
await creative.validatingBuyNowButton(features[4].buyNowUrl);
});
Expand Down Expand Up @@ -172,7 +170,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingCreativityAndDesign(features[9].country);
await creative.validatingExplore(features[9].country);
await creative.validatingLearnAndSupport();
await creative.closingPromoButton();
await creative.validatingFooter(features[9].country);
await creative.validatingBuyNowButton(features[9].buyNowUrl);
});
Expand All @@ -181,7 +178,7 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
console.info(`[Creative Cloud] Checking Page: Korea = ${baseURL}${features[10].path}`);

const pageURL = `${baseURL}${features[10].path}`;
await page.goto(pageURL, { waitUntil: 'networkidle' });
await page.goto(pageURL, { waitUntil: 'domcontentloaded' });
await expect(page).toHaveURL(pageURL);

await creative.validatingGnav(features[10].country);
Expand Down
5 changes: 1 addition & 4 deletions tests/feds/tabCreativeCloudUnavSanity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingCreativityAndDesignTabiPad(features[0].country);
await creative.validatingExplore(features[0].country);
await creative.validatingLearnAndSupport();
await creative.closingPromoButton();
await creative.validatingFooter(features[0].country);
await creative.validatingBuyNowButton(features[0].buyNowUrl);
});
Expand Down Expand Up @@ -91,7 +90,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingProgram(features[4].country);
await creative.validatingSubjectArea(features[4].country);
await creative.validatingTrainingAndSupport(features[4].country);
await creative.closingPromoButton();
await creative.validatingFooter(features[4].country);
await creative.validatingBuyNowButton(features[4].buyNowUrl);
});
Expand Down Expand Up @@ -171,7 +169,6 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
await creative.validatingCreativityAndDesignTabiPad(features[9].country);
await creative.validatingExplore(features[9].country);
await creative.validatingLearnAndSupport();
await creative.closingPromoButton();
await creative.validatingFooter(features[9].country);
await creative.validatingBuyNowButton(features[9].buyNowUrl);
});
Expand All @@ -180,7 +177,7 @@ test.describe('Test Suite for Creative Cloud Page Components', () => {
console.info(`[Creative Cloud] Checking Page: Korea = ${baseURL}${features[10].path}`);

const pageURL = `${baseURL}${features[10].path}`;
await page.goto(pageURL, { waitUntil: 'networkidle' });
await page.goto(pageURL, { waitUntil: 'domcontentloaded' });
await expect(page).toHaveURL(pageURL);

await creative.validatingGnav(features[10].country);
Expand Down

0 comments on commit 5ff742f

Please sign in to comment.