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) {
await expect(this.executionCreatedAt).toContainText(/\d+ seconds? ago/);
const executionIdFromUrl = this.page.url().split('/').pop();
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);
}

View File

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

View File

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