Skip to content
Snippets Groups Projects
Unverified Commit a66c934f authored by Tom Robinson's avatar Tom Robinson Committed by Cam Saul
Browse files

Fix occasional CI failure on parameters.e2e.spec.js

parent 5f5c7d1f
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ import {
waitForRequestToComplete,
waitForAllRequestsToComplete,
cleanup,
eventually,
} from "__support__/e2e_tests";
import jwt from "jsonwebtoken";
......@@ -439,23 +440,25 @@ async function sharedParametersTests(getAppAndStore) {
// ]);
// });
it("should have the correct values", () => {
const widgets = app.find(FieldValuesWidget);
const values = widgets.map(
widget =>
widget
.find("ul") // first ul is options
.at(0)
.find("li")
.map(li => li.text())
.slice(0, -1), // the last item is the input, remove it
);
expect(values).toEqual([
["Hudson Borer - 1"], // remapped value
[],
[],
[],
]);
it("should have the correct values", async () => {
await eventually(() => {
const widgets = app.find(FieldValuesWidget);
const values = widgets.map(
widget =>
widget
.find("ul") // first ul is options
.at(0)
.find("li")
.map(li => li.text())
.slice(0, -1), // the last item is the input, remove it
);
expect(values).toEqual([
["Hudson Borer - 1"], // remapped value
[],
[],
[],
])
});
});
it("should have the correct placeholders", () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment