Skip to content

Commit

Permalink
fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shashwatahalder01 committed Jan 25, 2024
1 parent 096a737 commit 2b3f833
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/e2e_api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ jobs:
cd tests/pw
npm ci
# Create php debuglog file
- name: Create php debuglog file
if: success()
run: |
cd tests/pw
mkdir -p debuglog && touch debuglog/debug.log
# Start wordpress environment
- name: Start WordPress Env
id: wp-env
Expand Down
2 changes: 1 addition & 1 deletion tests/pw/pages/basePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ export class BasePage {
async typeFrameSelector(frame: string, frameSelector: string, text: string): Promise<void> {
const locator = this.page.frameLocator(frame).locator(frameSelector);
await locator.fill(text);
await locator.pressSequentially(text);
// await locator.pressSequentially(text);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/pw/pages/storeSupportsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export class StoreSupportsPage extends AdminPage {
// decrease unread support ticket count
async decreaseUnreadSupportTicketCount(supportTicketId: string) {
await this.goIfNotThere(data.subUrls.backend.dokan.storeSupport);
const getUnreadCount = Number(await this.getElementText(selector.admin.dokan.storeSupport.unreadTicketCount));
const unreadCount = Number(await this.getElementText(selector.admin.dokan.storeSupport.unreadTicketCount));
await this.searchSupportTicket(supportTicketId);
await this.clickAndWaitForResponseAndLoadState(data.subUrls.api.dokan.storeSupport, selector.admin.dokan.storeSupport.supportTicketLink(supportTicketId));
const getNewUnreadCount = Number(await this.getElementText(selector.admin.dokan.storeSupport.unreadTicketCount));
expect(getNewUnreadCount).toEqual(getUnreadCount - 1);
expect(getNewUnreadCount).toEqual(unreadCount - 1);
}

// filter store supports
Expand Down

0 comments on commit 2b3f833

Please sign in to comment.