Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .env-cmdrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dev": {
"CX_BASE_URL": "https://40.76.109.9:9002"
"CX_BASE_URL": "https://api.cg79x9wuu9-eccommerc1-p4-public.model-t.myhybris.cloud"
},
"s1": {
"CX_BASE_URL": "https://api.c432wmya2v-teamspart3-s1-public.model-t.myhybris.cloud"
Expand All @@ -12,7 +12,7 @@
"CX_BASE_URL": "http://localhost:9002"
},
"ci": {
"CX_BASE_URL": "https://20.83.184.244:9002"
"CX_BASE_URL": "https://api.cg79x9wuu9-eccommerc1-p4-public.model-t.myhybris.cloud"
},
"ccv2": {
"CX_BASE_URL": "https://api.cg79x9wuu9-eccommerc1-p1-public.model-t.myhybris.cloud"
Expand Down
2 changes: 1 addition & 1 deletion projects/ssr-tests/src/utils/proxy.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { gunzipSync, inflateSync } from 'zlib';
*
* This is needed to set up a custom HTTPS agent with the correct SNI servername.
*/
const IS_CCV2_SERVER = false;
const IS_CCV2_SERVER = true;
/**
* Options to start a proxy server.
*/
Expand Down
6 changes: 3 additions & 3 deletions projects/storefrontapp-e2e-cypress/cypress.config.ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { defineConfig } from 'cypress';

const JDK_VERSION: string = 'JDK17';
const JDK_VERSION: string = 'JDK21';
const CLIENT_ID =
JDK_VERSION === 'JDK21' ? 'mobile_android_public' : 'mobile_android';

Expand All @@ -16,8 +16,8 @@ const API_URL =
: 'https://20.83.184.244:9002';

export default defineConfig({
defaultCommandTimeout: 30000,
requestTimeout: 30000,
defaultCommandTimeout: 120000,
requestTimeout: 120000,
projectId: 'k3nmep',
numTestsKeptInMemory: 100,
chromeWebSecurity: false,
Expand Down
2 changes: 1 addition & 1 deletion projects/storefrontapp-e2e-cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { defineConfig } from 'cypress';

const JDK_VERSION: string = 'JDK17';
const JDK_VERSION: string = 'JDK21';
const CLIENT_ID =
JDK_VERSION === 'JDK21' ? 'mobile_android_public' : 'mobile_android';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('Checkout Accessibility', { testIsolation: false }, () => {
before(() => {
cy.a11yContinuumSetup();
});
viewportContext(['mobile', 'desktop'], () => {
viewportContext([/*'mobile',*/ 'desktop'], () => {
before(() => {
cy.window().then((win) => {
win.sessionStorage.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { isolateTests } from '../../../../support/utils/test-isolation';
import { getSampleUser } from './../../../../sample-data/checkout-flow';

context('B2B - User Registration', { testIsolation: false }, () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext([/*'mobile',*/ 'desktop'], () => {
isolateTests();
beforeEach(() => {
clearAllStorage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { viewportContext } from '../../../helpers/viewport-context';

context('Anonymous consents flow', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
beforeEach(() => {
cy.window().then((win) => {
win.sessionStorage.clear();
Expand All @@ -25,7 +25,7 @@ context('Anonymous consents flow', () => {
});
});

viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
beforeEach(() => {
cy.window().then((win) => {
win.sessionStorage.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const productId2 = '2006139';
const productName2 = 'M340';

describe('Added to cart modal - Anonymous user', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => {
win.sessionStorage.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ context('Cart validation', () => {
});
});

viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
beforeEach(() => {
clearAllStorage();
cy.cxConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { viewportContext } from '../../../helpers/viewport-context';
import { login } from '../../../support/utils/login';

describe('Cart', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
context('Anonymous user', () => {
it('should add and remove products', () => {
cart.checkBasicCart();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as sampleData from '../../../sample-data/saved-cart';
import { clearAllStorage } from '../../../support/utils/clear-all-storage';

describe('Saved Cart', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Cart page', () => {
describe('Anonymous user', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { viewportContext } from '../../../helpers/viewport-context';
import { cheapProduct } from '../../../sample-data/checkout-flow';
import { isolateTests } from '../../../support/utils/test-isolation';
context('Checkout as guest', { testIsolation: false }, () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
isolateTests();
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('My Account - Address Book', { testIsolation: false }, () => {
});

describe('My Account - Address Book', { testIsolation: false }, () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
isolateTests();
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { isolateTests } from '../../../support/utils/test-isolation';
const CLOSE_ACCOUNT_URL = '/my-account/close-account';

describe('My Account - Close Account', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() =>
cy.window().then((win) => {
win.sessionStorage.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import * as login from '../../../helpers/login';
import { viewportContext } from '../../../helpers/viewport-context';
import { isolateTests } from '../../../support/utils/test-isolation';

viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('My Account - Consent Management', () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { standardUser } from '../../../sample-data/shared-users';
import { isolateTests } from '../../../support/utils/test-isolation';

describe('My Account - Consent Management(CXSPA-10780)', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { isolateTests } from '../../../support/utils/test-isolation';
export const UPDATE_EMAIL_URL = '/my-account/update-email';

describe('My Account - Update Email (CXSPA-10780)', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { isolateTests } from '../../../support/utils/test-isolation';
import * as loginHelper from '../../../helpers/my-account-v2/my-account-v2-login-helper';

describe('My Account V2 Notification preference (CXSPA-10780)', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Anonymous user (CXSPA-10780)', () => {
it('should redirect to login page for anonymous user', () => {
cy.visit('/my-account/notification-preference');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const PAGE_URL_UPDATE_PASSWORD = '/my-account/update-password';
export const newPassword = 'newPas!sword123!';

describe('My Account V2 - Update Password (CXSPA-10780)', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { waitForPage } from '../../../helpers/navigation';
import { viewportContext } from '../../../helpers/viewport-context';

describe('Order History with no orders', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Order History for anonymous user', () => {
it('should redirect to login page for anonymous user', () => {
cy.visit('/my-account/orders');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ describe('Order History with orders', () => {

describe('Order details page', { testIsolation: false }, () => {
isolateTestsBefore();
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
let formattedValue: any;
before(() => {
cy.visit('/');
cy.whenJDK17(() => {
cy.visit('/');
cy.requireLoggedIn();
doPlaceOrder().then((orderData: any) => {
formattedValue = orderData.body.totalPrice.formattedValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { viewportContext } from '../../../helpers/viewport-context';
import { standardUser } from '../../../sample-data/shared-users';

describe('My Account - Update Email', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Anonymous user', () => {
it('should redirect to login page', () => {
cy.visit(updateEmail.UPDATE_EMAIL_URL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('My Account - Update Password', () => {
updatePassword.testUpdatePasswordLoggedInUser();
});

viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() =>
cy.window().then((win) => {
win.sessionStorage.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('My interests', () => {
});
});
});
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Guest', () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Notification preference', () => {
});
});

viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('Anonymous user', () => {
before(() => {
clearAllStorage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { viewportContext } from '../../../helpers/viewport-context';
import { cmsEndpoints } from '../../../helpers/cms-endpoints';

context('Product carousel', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
beforeEach(() => {
// Configure ProductCarouselComponent to render Add To Cart buttons for each slide.
cy.cxConfig({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { viewportContext } from '../../../helpers/viewport-context';

context('Product search product type flow', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
cy.visit('/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { viewportContext } from '../../../helpers/viewport-context';
import { isolateTests } from '../../../support/utils/test-isolation';

context('Product search', { testIsolation: false }, () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
isolateTests();
before(() => {
cy.visit('/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { viewportContext } from '../../../helpers/viewport-context';

context('Save for later', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
before(() => {
cy.window().then((win) => win.sessionStorage.clear());
cy.visit('/');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getSampleUser } from '../../../sample-data/checkout-flow';
const user = getSampleUser();

describe('OPF billing address', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('billing address', () => {
beforeEach(() => {
cy.requireLoggedIn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getSampleUser } from '../../../sample-data/checkout-flow';
const user = getSampleUser();

describe('OPF payment options', () => {
viewportContext(['mobile', 'desktop'], () => {
viewportContext(['mobile' /*, 'desktop'*/], () => {
describe('payment options', () => {
beforeEach(() => {
cy.requireLoggedIn();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ export function updateTest(config: MyCompanyConfig) {
});
}

cy.get(`cx-org-card a.link`).contains('Edit').click();
cy.get('cx-org-card a.link')
.contains('Edit')
.should('be.visible')
.and('not.be.disabled')
.click();

cy.url().should('contain', `${config.baseUrl}/${entityId}/edit`);

cy.get('cx-org-form div.header h3').contains(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function switchSiteContext(option: string, label: string) {
? '.navigation .SiteContext label'
: '.header .SiteContext label';

cy.get(selector, { timeout: 10000 })
cy.get(selector, { timeout: 30000 })
.contains(label)
.should('be.visible')
.parent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ if (environment.cpq) {
reserveSpaceForImagesOnPdpAndPlp: true,
lazyLoadImagesByDefault: true,
incrementProcessesCountForMergeCart: true,
authorizationCodeFlowByDefault: false,
authorizationCodeFlowByDefault: true,
defaultLayoutConfigWithoutPageFold: true,
navigationMenuCloseOnSameLinkClick: true,
enablePasswordExpiredErrorTranslation: true,
Expand Down
Loading