@@ -50,7 +50,7 @@ async function getOpenedWidgetContainer(
5050 const bucket = new BucketClient({publishableKey: "${ KEY } ", user: {id: "foo"}, company: {id: "bar"}, ...${ JSON . stringify ( initOptions ?? { } ) } });
5151 await bucket.initialize();
5252 await bucket.requestFeedback({
53- featureId : "featureId1 ",
53+ featureKey : "feature1 ",
5454 title: "baz",
5555 });
5656 })()
@@ -90,7 +90,7 @@ async function getGiveFeedbackPageContainer(
9090 document.querySelector("#give-feedback-button")?.addEventListener("click", () => {
9191 console.log("cliked!");
9292 bucket.requestFeedback({
93- featureId : "featureId1 ",
93+ featureKey : "feature1 ",
9494 title: "baz",
9595 });
9696 });
@@ -250,7 +250,7 @@ test("Sends a request when choosing a score immediately", async ({ page }) => {
250250 . poll ( ( ) => sentJSON )
251251 . toEqual ( {
252252 companyId : "bar" ,
253- featureId : "featureId1 " ,
253+ key : "feature1 " ,
254254 score : expectedScore ,
255255 question : "baz" ,
256256 userId : "foo" ,
@@ -309,7 +309,7 @@ test("Updates the score on every change", async ({ page }) => {
309309 . toEqual ( {
310310 feedbackId : "123" ,
311311 companyId : "bar" ,
312- featureId : "featureId1 " ,
312+ key : "feature1 " ,
313313 question : "baz" ,
314314 score : 3 ,
315315 userId : "foo" ,
@@ -369,7 +369,7 @@ test("Sends a request with both the score and comment when submitting", async ({
369369 score : expectedScore ,
370370 companyId : "bar" ,
371371 question : "baz" ,
372- featureId : "featureId1 " ,
372+ key : "feature1 " ,
373373 feedbackId : "123" ,
374374 userId : "foo" ,
375375 source : "widget" ,
0 commit comments