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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user