Skip to content

Commit 12abd53

Browse files
committed
feat: change condition of running tests from localhost to dev proxy mode
1 parent f721f74 commit 12abd53

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/tests/portal/01-general/1.2-general.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { getSysInfo } from '@test-data/props'
2020
import { AgentPage } from '@agent/pages'
2121
import { PortalPage } from '@portal/pages'
2222
import { MIDDLE_EXPECT, TICKET_BASE_URL } from '@test-setup'
23-
import { isLocalHost } from '@services/utils'
23+
import { isDevProxyMode } from '@services/utils'
2424

2525
test.describe('General', () => {
2626

@@ -53,7 +53,7 @@ test.describe('General', () => {
5353
annotation: { type: 'Test Case', description: `${TICKET_BASE_URL}TestCase-A-4279` },
5454
},
5555
async ({ sysadminPage: page }) => {
56-
test.skip(isLocalHost(), 'Does not support localhost execution')
56+
test.skip(isDevProxyMode(), 'Does not support dev proxy mode')
5757

5858
const portalPage = new PortalPage(page)
5959
const agentPage = new AgentPage(page)

src/tests/portal/04-entity-actions/4.3.2-package-editing-publishing.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
V_P_PKG_EDITING_SEARCH_R,
4242
} from '@test-data/portal'
4343
import { PUBLISH_TIMEOUT, TICKET_BASE_URL } from '@test-setup'
44-
import { isLocalHost } from '@services/utils'
44+
import { isDevProxyMode } from '@services/utils'
4545

4646
test.describe('4.3.2 Package publishing via Portal', () => {
4747

@@ -66,8 +66,8 @@ test.describe('4.3.2 Package publishing via Portal', () => {
6666
await expect(configureVersionTab.filesUploader).toBeVisible()
6767
})
6868

69-
//Does not support localhost execution
70-
if (!isLocalHost()) {
69+
//Does not support dev proxy mode
70+
if (!isDevProxyMode()) {
7171
await test.step('Agent option', async () => {
7272
await portalPage.gotoPackage(testPackage)
7373
await versionPage.howToUploadBtn.click()

0 commit comments

Comments
 (0)