diff --git a/.github/workflows/e2e_api_tests.yml b/.github/workflows/e2e_api_tests.yml index 6ba7b7e8cf..7729af9708 100644 --- a/.github/workflows/e2e_api_tests.yml +++ b/.github/workflows/e2e_api_tests.yml @@ -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 diff --git a/tests/pw/pages/basePage.ts b/tests/pw/pages/basePage.ts index 4e39261e21..9bbd98e22d 100644 --- a/tests/pw/pages/basePage.ts +++ b/tests/pw/pages/basePage.ts @@ -845,7 +845,7 @@ export class BasePage { async typeFrameSelector(frame: string, frameSelector: string, text: string): Promise { const locator = this.page.frameLocator(frame).locator(frameSelector); await locator.fill(text); - await locator.pressSequentially(text); + // await locator.pressSequentially(text); } /** diff --git a/tests/pw/pages/storeSupportsPage.ts b/tests/pw/pages/storeSupportsPage.ts index 79b0eaef3b..b4e344cd92 100644 --- a/tests/pw/pages/storeSupportsPage.ts +++ b/tests/pw/pages/storeSupportsPage.ts @@ -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