fix: removes new session action creation (#4734)

Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
This commit is contained in:
Anshuman Pandey
2025-02-17 18:21:43 +05:30
committed by GitHub
parent ef78c68ac1
commit 47a265016c
3 changed files with 6 additions and 28 deletions

View File

@@ -82,15 +82,6 @@ export const createUsersFixture = (page: Page, workerInfo: TestInfo) => {
create: [
{
type: "development",
actionClasses: {
create: [
{
name: "New Session",
description: "Gets fired when a new session is created",
type: "automatic",
},
],
},
attributeKeys: {
create: [
{
@@ -104,15 +95,6 @@ export const createUsersFixture = (page: Page, workerInfo: TestInfo) => {
},
{
type: "production",
actionClasses: {
create: [
{
name: "New Session",
description: "Gets fired when a new session is created",
type: "automatic",
},
],
},
attributeKeys: {
create: [
{

View File

@@ -78,7 +78,12 @@ test.describe("JS Package Test", async () => {
await page.locator("#whenToSendCardTrigger").click();
await page.getByRole("button", { name: "Add action" }).click();
await page.getByText("New SessionGets fired when a").click();
await page.getByRole("button", { name: "Capture new action" }).click();
await page.getByPlaceholder("E.g. Clicked Download").click();
await page.getByPlaceholder("E.g. Clicked Download").fill("New Session");
await page.getByText("Page View").click();
await page.getByRole("button", { name: "Create action" }).click();
await page.locator("#recontactOptionsCardTrigger").click();
await page.locator("label").filter({ hasText: "Keep showing while conditions" }).click();

View File

@@ -164,15 +164,6 @@ export const createEnvironment = async (
type: environmentInput.type || "development",
project: { connect: { id: projectId } },
appSetupCompleted: environmentInput.appSetupCompleted || false,
actionClasses: {
create: [
{
name: "New Session",
description: "Gets fired when a new session is created",
type: "automatic",
},
],
},
attributeKeys: {
create: [
{