Skip to content

Commit

Permalink
Remove references to @/components/ from application tests (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquirosj authored May 23, 2024
1 parent 047d5d1 commit 8b02e11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import { screen, within } from "@testing-library/vue";
import { columnName } from "@/components/monitoring/EndpointListRow.vue";
import { fireEvent } from "@testing-library/vue";

export enum columnName {
ENDPOINTNAME = "name",
QUEUELENGTH = "queueLength",
THROUGHPUT = "throughput",
SCHEDULEDRETRIES = "retries",
PROCESSINGTIME = "processingTime",
CRITICALTIME = "criticalTime",
}
export async function smallGraphAverageValuesByColumn({ column }: { column: columnName | string }) {
const ungroupedEndpoints = screen.getByRole("treeitem", { name: "ungrouped-endpoints" });
const endpointRows = within(ungroupedEndpoints).getAllByRole("row");
Expand Down
11 changes: 1 addition & 10 deletions src/Frontend/test/specs/monitoring/sorting-endpoints.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,13 @@ import { endpointGroupNames } from "./questions/endpointGroupNames";
import { endpointGroup } from "./questions/endpointGroup";
import { sortEndpointsBy } from "./actions/sortEndpointsBy";
import { findSortImageInColumn } from "./questions/sortDirection";
import { smallGraphAverageValuesByColumn } from "./questions/smallGraphAverageValuesByColumn";
import { smallGraphAverageValuesByColumn, columnName } from "./questions/smallGraphAverageValuesByColumn";
import { ungroupedEndpointNames } from "./questions/ungroupedEndpointNames";
import * as precondition from "../../preconditions";
import { monitoredEndpointTemplate } from "../../mocks/monitored-endpoint-template";
import { Endpoint } from "@/resources/MonitoringEndpoint";
import { endpointsNames } from "./questions/endpointsNames";

enum columnName {
ENDPOINTNAME = "name",
QUEUELENGTH = "queueLength",
THROUGHPUT = "throughput",
SCHEDULEDRETRIES = "retries",
PROCESSINGTIME = "processingTime",
CRITICALTIME = "criticalTime",
}

describe("FEATURE: Endpoint sorting", () => {
describe("Rule: Grouped endpoints should be able to be sorted in ascending and descending order by group name and by endpoint name inside the group", () => {
it("Example: Endpoints inside of the groups and group names should be sorted in the same direction as the ungrouped endpoints", async ({ driver }) => {
Expand Down

0 comments on commit 8b02e11

Please sign in to comment.