Skip to content

Commit 136e85e

Browse files
committed
3172: Fixed test issues
1 parent e3b6dba commit 136e85e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

e2e/feed-sources.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ test.describe("fest", () => {
219219

220220
test("It loads create datakilde page", async ({ page }) => {
221221
page.getByText("Opret ny datakilde").click();
222-
await expect(page.locator("#save_feed-source")).toBeVisible();
222+
await expect(page.locator("#save")).toBeVisible();
223223
});
224224

225225
test("It display error toast on save error", async ({ page }) => {
@@ -238,7 +238,7 @@ test.describe("fest", () => {
238238
await expect(
239239
page.locator(".Toastify").locator(".Toastify__toast--error")
240240
).not.toBeVisible();
241-
await page.locator("#save_feed-source").click();
241+
await page.locator("#save").click();
242242
await expect(
243243
page.locator(".Toastify").locator(".Toastify__toast--error")
244244
).toBeVisible();
@@ -253,9 +253,9 @@ test.describe("fest", () => {
253253
});
254254
test("Cancel create datakilde", async ({ page }) => {
255255
page.getByText("Opret ny datakilde").click();
256-
await expect(page.locator("#cancel_feed-source")).toBeVisible();
257-
await page.locator("#cancel_feed-source").click();
258-
await expect(page.locator("#cancel_feed-source")).not.toBeVisible();
256+
await expect(page.locator("#cancel")).toBeVisible();
257+
await page.locator("#cancel").click();
258+
await expect(page.locator("#cancel")).not.toBeVisible();
259259
});
260260
});
261261

e2e/playlist.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test.describe("Playlist create tests", () => {
5959
await expect(
6060
page.locator(".Toastify").locator(".Toastify__toast--success")
6161
).not.toBeVisible();
62-
await page.locator("#save_playlist").click();
62+
await page.locator("#save_slide_and_close").click();
6363
await expect(
6464
page
6565
.locator(".Toastify")

src/components/feed-sources/feed-source-form.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function FeedSourceForm({
116116
<Button
117117
variant="secondary"
118118
type="button"
119-
id="cancel_feed-source"
119+
id="cancel"
120120
onClick={() => navigate("/feed-sources/list")}
121121
className="margin-right-button"
122122
>
@@ -125,7 +125,7 @@ function FeedSourceForm({
125125
<Button
126126
variant="outline-primary"
127127
type="button"
128-
id="cancel_feed-source"
128+
id="save-without-close"
129129
onClick={handleSaveNoClose}
130130
className="margin-right-button"
131131
>
@@ -135,7 +135,7 @@ function FeedSourceForm({
135135
variant="primary"
136136
type="button"
137137
onClick={handleSubmit}
138-
id="save_feed-source"
138+
id="save"
139139
>
140140
{t("save-button")}
141141
</Button>

src/components/playlist/playlist-campaign-form.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ function PlaylistCampaignForm({
283283
variant="primary"
284284
type="button"
285285
onClick={checkInputsHandleSubmit}
286-
id="save_slide_an_close"
286+
id="save_slide_and_close"
287287
className="margin-right-button"
288288
>
289289
{t("save-button-and-close")}

0 commit comments

Comments
 (0)