Skip to content

Commit d42f165

Browse files
Update flashClassMap imports to use the aliased path
1 parent 4850b0b commit d42f165

File tree

7 files changed

+25
-11
lines changed

7 files changed

+25
-11
lines changed

cypress/e2e/ui/Automation/Embedded-Automate/Explorer/namespace.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../../support/assertions/assertion_constants";
35

46
// Component route url
57
const COMPONENT_ROUTE_URL = 'miq_ae_class/explorer#/';

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../support/assertions/assertion_constants";
35

46
// Menu options
57
const SETTINGS_MENU_OPTION = 'Settings';

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../support/assertions/assertion_constants";
35

46
// Component route url
57
const COMPONENT_ROUTE_URL = '/ops/explorer';
@@ -206,9 +208,9 @@ describe('Automate Collect logs Edit form operations', () => {
206208

207209
after(() => {
208210
cy.url()
209-
?.then((url) => {
211+
.then((url) => {
210212
// Ensures navigation to Settings -> Application-Settings in the UI
211-
if (!url?.includes(COMPONENT_ROUTE_URL)) {
213+
if (!url.includes(COMPONENT_ROUTE_URL)) {
212214
// Navigate to Settings -> Application-Settings before cleanup
213215
cy.menu(SETTINGS_MENU_OPTION, APP_SETTINGS_MENU_OPTION);
214216
}
@@ -247,9 +249,9 @@ describe('Automate Collect logs Edit form operations', () => {
247249

248250
after(() => {
249251
cy.url()
250-
?.then((url) => {
252+
.then((url) => {
251253
// Ensures navigation to Settings -> Application-Settings in the UI
252-
if (!url?.includes(COMPONENT_ROUTE_URL)) {
254+
if (!url.includes(COMPONENT_ROUTE_URL)) {
253255
// Navigate to Settings -> Application-Settings before cleanup
254256
cy.menu(SETTINGS_MENU_OPTION, APP_SETTINGS_MENU_OPTION);
255257
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../support/assertions/assertion_constants";
35

46
// Component route url
57
const COMPONENT_ROUTE_URL = '/ops/explorer';

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../support/assertions/assertion_constants";
35

46
describe('Settings > Application Settings > Access Control', () => {
57
// Navigation

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from '../../../../support/assertions/assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "../../../../support/assertions/assertion_constants";
35

46
// Component route url
57
const COMPONENT_ROUTE_URL = '/ops/explorer#/';

cypress/support/assertions/expect_alerts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/* eslint-disable no-undef */
2-
import { flashClassMap } from './assertion_constants';
2+
// import { flashClassMap } from '@cypress-dir/support/assertions/assertion_constants.js';
3+
// const { flashClassMap } = require('@cypress-dir/support/assertions/assertion_constants.js');
4+
import { flashClassMap } from "./assertion_constants";
35

46
/**
57
* Custom Cypress command to validate flash messages.

0 commit comments

Comments
 (0)