Skip to content

Commit 339a1d9

Browse files
authored
Playwright Magento version tag (#35)
1 parent a3c03a3 commit 339a1d9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/playwright.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
- name: Use Rapidez package from source
9999
run: composer config repositories.$PACKAGE path ../$PACKAGE
100100

101+
- name: Make the Magento version available as env variable
102+
run: echo "MAGENTO_VERSION=${{ matrix.magento-version }}" >> $GITHUB_ENV
103+
101104
- name: Get commit hash and tag of the package
102105
working-directory: ./rapidez/${{ env.PACKAGE }}
103106
run: |

tests/playwright/reviews.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test";
22
import { BasePage } from '../../vendor/rapidez/core/tests/playwright/pages/BasePage'
33
import { ProductPage } from "./pages/ProductPage";
44

5-
test('product with reviews', async ({ page }) => {
5+
test('product with reviews', BasePage.tags, async ({ page }) => {
66
const productPage = new ProductPage(page)
77
const product = await productPage.goto(process.env.PRODUCT_URL_REVIEWS)
88

@@ -12,7 +12,7 @@ test('product with reviews', async ({ page }) => {
1212
await new BasePage(page).screenshot('fullpage-footer')
1313
})
1414

15-
test('product without reviews', async ({ page }) => {
15+
test('product without reviews', BasePage.tags, async ({ page }) => {
1616
const productPage = new ProductPage(page)
1717
await productPage.goto(process.env.PRODUCT_URL_WITHOUT_REVIEW)
1818

@@ -21,7 +21,7 @@ test('product without reviews', async ({ page }) => {
2121
await new BasePage(page).screenshot('fullpage-footer')
2222
})
2323

24-
test('load more reviews', async ({ page}) => {
24+
test('load more reviews', BasePage.tags, async ({ page}) => {
2525
const productPage = new ProductPage(page)
2626
await productPage.goto(process.env.PRODUCT_URL_LOAD_MORE_REVIEWS)
2727

@@ -30,11 +30,11 @@ test('load more reviews', async ({ page}) => {
3030
await new BasePage(page).screenshot('fullpage-footer')
3131
})
3232

33-
test('product write a review', async ({ page }) => {
33+
test('product write a review', BasePage.tags, async ({ page }) => {
3434
const productPage = new ProductPage(page)
3535
await productPage.goto(process.env.PRODUCT_URL_WRITE_REVIEW)
3636

3737
await productPage.writeReview()
3838

3939
await new BasePage(page).screenshot('fullpage-footer')
40-
})
40+
})

0 commit comments

Comments
 (0)