Skip to content

Commit

Permalink
tests fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nartovm committed Nov 25, 2024
1 parent 42c3252 commit 1bb6d4b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 2 additions & 0 deletions apps/chat-e2e/src/ui/selectors/headerSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export const HeaderSelectors = {
rightPanelToggle: '[data-qa="right-panel-toggle"]:visible',
banner: '[data-qa="banner"]',
accountSettings: '[data-qa="account-settings"]',
newEntity: '[data-qa="new-entity"]',
backToChatButton: '[data-qa="back-to-chat"]',
};
1 change: 0 additions & 1 deletion apps/chat-e2e/src/ui/selectors/marketplaceSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const MarketplaceDetailsModal = {

export const MarketplaceSideBarSelectors = {
sidebar: '[data-qa="marketplace-sidebar"]',
backToChatButton: '[data-qa="back-to-chat"]',
homePageButton: '[data-qa="home-page"]',
myApplicationsButton: '[data-qa="my-applications"]',
searchInput: '[name="titleInput"]',
Expand Down
1 change: 0 additions & 1 deletion apps/chat-e2e/src/ui/selectors/sideBarSelectors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const SideBarSelectors = {
chatBar: '[data-qa="chatbar"]',
promptBar: '[data-qa="promptbar"]',
newEntity: '[data-qa="new-entity"]',
import: '[data-qa="import"]',
export: '[data-qa="export"]',
deleteEntities: '[data-qa="delete-entities"]',
Expand Down
10 changes: 3 additions & 7 deletions apps/chat-e2e/src/ui/webElements/header.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { API } from '@/src/testData';
import {
HeaderSelectors,
MarketplaceSideBarSelectors,
SideBarSelectors,
} from '@/src/ui/selectors';
import { HeaderSelectors } from '@/src/ui/selectors';
import { AccountSettings } from '@/src/ui/webElements/accountSettings';
import { BaseElement } from '@/src/ui/webElements/baseElement';
import { Locator, Page } from '@playwright/test';
Expand All @@ -30,11 +26,11 @@ export class Header extends BaseElement {
);

public newEntityButton = this.getChildElementBySelector(
SideBarSelectors.newEntity,
HeaderSelectors.newEntity,
);

public backToChatButton = this.getChildElementBySelector(
MarketplaceSideBarSelectors.backToChatButton,
HeaderSelectors.backToChatButton,
);

public async createNewConversation() {
Expand Down

0 comments on commit 1bb6d4b

Please sign in to comment.