Skip to content

Commit c1c2953

Browse files
Update flashClassMap imports to use the aliased path
1 parent 4e75e9a commit c1c2953

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

cypress/e2e/ui/Settings/Application-Settings/c_and_u_gap_collection.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
import { flashClassMap } from '@cypress-support/assertions/assertion_constants.js';
33

44
// Menu options
55
const SETTINGS_MENU_OPTION = 'Settings';

cypress/e2e/ui/Settings/Application-Settings/edit_collect_logs.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ describe('Automate Collect logs Edit form operations', () => {
206206

207207
after(() => {
208208
cy.url()
209-
?.then((url) => {
209+
.then((url) => {
210210
// Ensures navigation to Settings -> Application-Settings in the UI
211-
if (!url?.includes(COMPONENT_ROUTE_URL)) {
211+
if (!url.includes(COMPONENT_ROUTE_URL)) {
212212
// Navigate to Settings -> Application-Settings before cleanup
213213
cy.menu(SETTINGS_MENU_OPTION, APP_SETTINGS_MENU_OPTION);
214214
}
@@ -247,9 +247,9 @@ describe('Automate Collect logs Edit form operations', () => {
247247

248248
after(() => {
249249
cy.url()
250-
?.then((url) => {
250+
.then((url) => {
251251
// Ensures navigation to Settings -> Application-Settings in the UI
252-
if (!url?.includes(COMPONENT_ROUTE_URL)) {
252+
if (!url.includes(COMPONENT_ROUTE_URL)) {
253253
// Navigate to Settings -> Application-Settings before cleanup
254254
cy.menu(SETTINGS_MENU_OPTION, APP_SETTINGS_MENU_OPTION);
255255
}

cypress/e2e/ui/Settings/Application-Settings/schedule.cy.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
import { flashClassMap } from '@cypress-support/assertions/assertion_constants.js';
33

44
const textConstants = {
55
// List items
@@ -195,7 +195,7 @@ function interceptGetScheduleDetailsApi(scheduleName = initialScheduleName) {
195195
function invokeCleanupDeletion() {
196196
// Iterate and clean up any leftover schedules created during the test
197197
cy.get('li.list-group-item').each(($el) => {
198-
const text = $el?.text()?.trim();
198+
const text = $el.text().trim();
199199
if (text === initialScheduleName) {
200200
deleteSchedule();
201201
return false;
@@ -466,9 +466,9 @@ describe('Automate Schedule form operations: Settings > Application Settings > S
466466
});
467467

468468
afterEach(() => {
469-
cy?.url()?.then((url) => {
469+
cy.url().then((url) => {
470470
// Ensures navigation to Settings -> Application-Settings in the UI
471-
if (url?.includes('/ops/explorer')) {
471+
if (url.includes('/ops/explorer')) {
472472
invokeCleanupDeletion();
473473
} else {
474474
// Navigate to Settings -> Application-Settings before looking out for Schedules created during test

cypress/e2e/ui/Settings/Application-Settings/settings_access_control.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
import { flashClassMap } from '@cypress-support/assertions/assertion_constants.js';
33

44
describe('Settings > Application Settings > Access Control', () => {
55
// Navigation

0 commit comments

Comments
 (0)