diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 511b063..4d2aea0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -114,11 +114,11 @@ jobs: retention-days: 14 - name: Send TestDino report - env: - NODE_ENV: staging + # env: + # NODE_ENV: staging run: | npx --yes tdpw ./playwright-report \ - --token="trx_staging_9d6d5df0ceb85dff581f9d1c502bafb44aaee625e4030f7fb765187e017f01d0" \ + --token="${{ secrets.TESTDINO_TOKEN }}" \ --upload-html \ --upload-traces \ --verbose \ No newline at end of file diff --git a/pages/ProductDetailsPage.js b/pages/ProductDetailsPage.js index 748b3ef..d9b4198 100644 --- a/pages/ProductDetailsPage.js +++ b/pages/ProductDetailsPage.js @@ -10,6 +10,7 @@ class ProductDetailsPage extends BasePage{ super(page); this.page = page; } + locators = { plusIconToAddQuantity: '[aria-label="plus"]', @@ -82,6 +83,7 @@ class ProductDetailsPage extends BasePage{ await expect(this.getProductAdditionalInfoTab()).toBeVisible(); } + async clickAddToCartButton() { await this.getAddToCartButton().click(); await expect(this.page.getByText('Added to the cart')).toBeVisible();