Split anonymous access e2e tests into separate files

This commit is contained in:
Sebastian Sdorra
2020-08-12 12:13:23 +02:00
parent 6fbb3b9d53
commit 752745868a
9 changed files with 149 additions and 78 deletions

View File

@@ -73,7 +73,7 @@ describe("devbuild tests", () => {
expect(attributes).toBeUndefined();
});
it("should normalize testid testid", () => {
it("should remove spaces from test id", () => {
const attributes = createAttributesForTesting("heart of gold");
if (attributes) {
expect(attributes["data-testid"]).toBe("heart-of-gold");
@@ -81,5 +81,14 @@ describe("devbuild tests", () => {
throw new Error("attributes should be defined");
}
});
it("should lower case test id", () => {
const attributes = createAttributesForTesting("HeartOfGold");
if (attributes) {
expect(attributes["data-testid"]).toBe("heartofgold");
} else {
throw new Error("attributes should be defined");
}
});
});
});