-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1541: remvoe media tests, and two failing tests
- Loading branch information
1 parent
c5b534a
commit e8244a4
Showing
4 changed files
with
22 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import contentString from "../src/components/util/helpers/content-string"; | ||
|
||
test.describe("Content string", () => { | ||
test("It creates a string: 'test and test'", async ({ page }) => { | ||
expect(contentString([{ name: "test" }, { name: "test" }], "and")).toBe( | ||
"test and test" | ||
); | ||
}); | ||
|
||
test("It creates a string: 'test, hest or test'", async ({ page }) => { | ||
expect( | ||
contentString( | ||
[{ name: "test" }, { label: "hest" }, { name: "test" }], | ||
"or" | ||
) | ||
).toBe("test, hest or test"); | ||
}); | ||
test("It creates a string: 'test'", async ({ page }) => { | ||
expect(contentString([{ name: "test" }], "or")).toBe("test"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.