Qfix: remove hardcoded platform url (#5692)

This commit is contained in:
Alexey Zinoviev 2024-05-29 12:17:35 +04:00 committed by GitHub
parent e752bc44a0
commit ea388c0933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,7 +301,8 @@ test.describe('channel tests', () => {
})
test('check if user can copy message', async ({ page }) => {
const expectedUrl = `http://localhost:8083/workbench/${data.workspaceName}/chunter/chunter:space:Random|chunter:class:Channel?message=`
const baseURL = process.env.PLATFORM_URI ?? 'http://localhost:8083'
const expectedUrl = `${baseURL}/workbench/${data.workspaceName}/chunter/chunter:space:Random|chunter:class:Channel?message=`
await leftSideMenuPage.clickChunter()
await channelPage.clickChannel('random')
await channelPage.sendMessage('Test message')