Skip to content

Commit

Permalink
Slug Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nahidthenh committed Sep 23, 2024
1 parent d7658ab commit 52e75bd
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 17 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Playwright Tests
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
Expand All @@ -18,7 +20,7 @@ jobs:
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: always()
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
Expand Down
28 changes: 16 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.45.3",
"@playwright/test": "^1.47.2",
"@types/node": "^20.14.12"
}
}
2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'https://embedpress.qcheck.site/',
baseURL: 'https://embedpress.qa1.site/',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down
6 changes: 6 additions & 0 deletions tests/gutenberg/youtube.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const { test, expect } = require('@playwright/test');
let slug = 'playwright-gutenberg/gutenberg-youtube';


/* The above code is a test script written in JavaScript using the Jest testing framework. It is
setting up a test suite for a feature called "Gutenberg YouTube". The `beforeEach` hook is used to
run a function before each test case in the suite. In this case, it is navigating the test page to a
URL specified by the `slug` variable. */
test.describe("Gutenberg YouTube", () => {
test.beforeEach(async ({ page }) => {
await page.goto(slug);
Expand Down Expand Up @@ -50,6 +54,8 @@ test.describe("Gutenberg YouTube", () => {
await page.getByText('×', { exact: true }).click();
});

/* The above code is a test script written in JavaScript using the Playwright testing library. It is
testing the layout and functionality of a YouTube channel grid on a web page. */

test('YouTube Chanel Grid Layout', async ({ page }) => {

Expand Down

0 comments on commit 52e75bd

Please sign in to comment.