test integration

This commit is contained in:
stanislavchalapko 2024-03-27 15:27:13 +02:00
parent 8f4fbce1f7
commit 0fd2b262ed
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ jobs:
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
LOGIN_PWD: ${{ secrets.LOGIN_PWD }}
GITHUB_RUN_ID: ${{ github.run.id }}
run: npx playwright test --project=chrome -gv 'PERF'
run: npx playwright test --project=chrome -gv 'PERF' ./tests/panels-features/panels-features-fill.spec.js
- name: Upload Playwright Report
uses: actions/upload-artifact@v3
if: always()

View File

@ -5,11 +5,11 @@ const { readResultsFromFile } = require('./saveTestResults');
const baseUrl = 'https://chat.kaleidos.net/api/v4';
const channel_id = process.env.CHANNEL_ID;
const channel_id = `${process.env.CHANNEL_ID}`;
async function getToken() {
const url = `${baseUrl}/users/login`;
const requestBody = {"login_id":process.env.LOGIN_ID_MATTERMOST,"password":process.env.PASSWORD_MATTERMOST};
const requestBody = {"login_id":`${process.env.LOGIN_ID_MATTERMOST}`,"password":`${process.env.PASSWORD_MATTERMOST}`};
try {
const response = await axios.post(url, requestBody, {