Skip to content

Commit

Permalink
feat(ui): make new-ui the default
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Jul 29, 2024
1 parent 747df6a commit 6142607
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions springwolf-examples/e2e/util/page_object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import { Locator, Page } from "@playwright/test";

export function locateChannels(locator: Page | Locator) {
return locator.locator("app-channels > mat-accordion");
// return locator.locator("section#channels article"); // for new ui
return locator.locator("section#channels article");
}

export function locateChannelItems(locator: Page | Locator) {
return locator.locator("app-channels > mat-accordion > mat-expansion-panel");
// return locator.locator("section#channels article > mat-card"); // for new ui
return locator.locator("section#channels article > mat-card");
}

export function locateChannel(
Expand All @@ -18,9 +16,8 @@ export function locateChannel(
action: string,
payload: string
) {
return locator.getByTestId(
// return locator.locator( // for new ui
"channel-" + protocol + "-" + channelName + "-" + action + "-" + payload
return locator.locator(
"#channel-" + protocol + "-" + channelName + "-" + action + "-" + payload
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AsyncApiService } from "../../service/asyncapi/asyncapi.service";
styleUrls: ["./header.component.css"],
})
export class HeaderComponent implements OnInit {
isNewUi: boolean = false;
isNewUi: boolean = true;
title: string = "";

constructor(
Expand Down
2 changes: 1 addition & 1 deletion springwolf-ui/src/app/service/ui.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BehaviorSubject } from "rxjs";
providedIn: "root",
})
export class UiService {
private _isNewUi = new BehaviorSubject<boolean>(false);
private _isNewUi = new BehaviorSubject<boolean>(true);
isNewUi$ = this._isNewUi.asObservable();

toggleIsNewUi(value: boolean) {
Expand Down

0 comments on commit 6142607

Please sign in to comment.