test: add step name to update step request
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user