test: add step name to update step request

This commit is contained in:
Jakub P.
2025-02-01 12:01:05 +01:00
parent 400a45051f
commit 8042caea42
3 changed files with 5 additions and 2 deletions

View File

@@ -13,8 +13,9 @@ export class ExecutionDetailsPage extends AuthenticatedPage {
async verifyExecutionData(flowId) { async verifyExecutionData(flowId) {
await expect(this.executionCreatedAt).toContainText(/\d+ seconds? ago/); await expect(this.executionCreatedAt).toContainText(/\d+ seconds? ago/);
const executionIdFromUrl = this.page.url().split('/').pop();
await expect(this.executionId).toHaveText( await expect(this.executionId).toHaveText(
/Execution ID: [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i `Execution ID: ${executionIdFromUrl}`
); );
await expect(this.executionName).toHaveText(flowId); await expect(this.executionName).toHaveText(flowId);
} }

View File

@@ -85,6 +85,7 @@ export const addWebhookFlow = async (request, token) => {
const triggerStep = await updateFlowStep(request, token, triggerStepId, { const triggerStep = await updateFlowStep(request, token, triggerStepId, {
appKey: 'webhook', appKey: 'webhook',
key: 'catchRawWebhook', key: 'catchRawWebhook',
name: 'Webhook',
parameters: { parameters: {
workSynchronously: false, workSynchronously: false,
}, },
@@ -95,6 +96,7 @@ export const addWebhookFlow = async (request, token) => {
await updateFlowStep(request, token, actionStepId, { await updateFlowStep(request, token, actionStepId, {
appKey: 'webhook', appKey: 'webhook',
key: 'respondWith', key: 'respondWith',
name: 'Webhook',
parameters: { parameters: {
statusCode: '200', statusCode: '200',
body: 'ok', body: 'ok',

View File

@@ -1,10 +1,10 @@
const { publicTest: setup, expect } = require('../../fixtures/index'); const { publicTest: setup, expect } = require('../../fixtures/index');
setup.describe.serial('Admin setup page', () => { setup.describe.serial('Admin setup page', () => {
// eslint-disable-next-line no-unused-vars
setup( setup(
'should not be able to login if admin is not created', 'should not be able to login if admin is not created',
async ({ page, adminSetupPage }) => { async ({ page, adminSetupPage }) => {
await adminSetupPage.open();
await expect(async () => { await expect(async () => {
await expect(await page.url()).toContain(adminSetupPage.path); await expect(await page.url()).toContain(adminSetupPage.path);
}).toPass(); }).toPass();