Skip to content

Commit 65c2434

Browse files
authored
Merge branch 'master' into develop
2 parents 84d0a04 + 375868e commit 65c2434

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# e2e test for transcoder
22

3-
name: CI for Transcoder
3+
name: End-to-End Tests
44

55
# Controls when the workflow will run
66
on:
@@ -20,7 +20,7 @@ on:
2020
jobs:
2121
Run-wpe2e-TestCase:
2222
# The type of runner that the job will run on
23-
name: Run Transcoder Jobs
23+
name: Playwright Tests
2424
runs-on: ubuntu-latest
2525
env:
2626
SHA: ${{ github.event.pull_request.head.sha }}

admin/rt-transcoder-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function rtt_update_activity_after_thumb_set( $id ) {
247247
$activity_text = bp_activity_get_meta( $activity_id, 'bp_activity_text' );
248248
$obj_activity->activity_text = $activity_text;
249249
global $wpdb;
250-
$wpdb->update( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery
250+
$wpdb->update( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.DirectQuery
251251
$bp->activity->table_name,
252252
array(
253253
'type' => 'rtmedia_update',

tests/e2e-playwright/e2e-test-utils-playwright/build-types/config.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare const WP_ADMIN_USER: {
22
readonly username: "automation";
3-
readonly password: "automation";
3+
readonly password: "@automation00520019";
44
};
55
declare const WP_USERNAME: string, WP_PASSWORD: string, WP_BASE_URL: string;
66
export { WP_ADMIN_USER, WP_USERNAME, WP_PASSWORD, WP_BASE_URL };

tests/e2e-playwright/e2e-test-utils-playwright/build/config.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/e2e-playwright/e2e-test-utils-playwright/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const WP_ADMIN_USER = {
22
username: 'automation',
3-
password: 'automation',
3+
password: '@automation00520019',
44
} as const;
55

66
const {

tests/e2e-playwright/specs/08_validate-transcoder-frontend.spec.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
/**
22
* WordPress dependencies
33
*/
4-
const { test, expect } = require('@wordpress/e2e-test-utils-playwright');
5-
const SITE_URL = 'https://transcoder-test.rt.gw/activity'; //'http://transcoder.com/activity/';
6-
const Media_URL = 'https://transcoder-test.rt.gw/members/automation/media/'
4+
const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' );
75
test.describe('Validate Transcoder In frontend', () => {
86
test.beforeEach(async ({ admin }) => {
97
await admin.visitAdminPage('/');
108

119
});
12-
test('Check Transcoder settings In Activity', async ({ admin, page, editor }) => {
13-
await page.goto(SITE_URL, { waitUntil: 'load' });
10+
test('Check Transcoder settings In Activity', async ({ page }) => {
11+
await page.hover("#wp-admin-bar-my-account");
12+
const navigationPromise = page.waitForNavigation();
13+
await page.locator("#wp-admin-bar-my-account-activity").click();
14+
await navigationPromise;
1415
await page.locator("#whats-new").click();
1516
//Upload
1617
const videoPath = "assets/3gp-sample.3gp";
@@ -36,8 +37,11 @@ test.describe('Validate Transcoder In frontend', () => {
3637
});
3738

3839
test('Check Transcoder settings In Media Page', async ({ page }) => {
39-
// Goto Media Page
40-
await page.goto(Media_URL, { waitUntil: 'load' });
40+
await page.hover("#wp-admin-bar-my-account");
41+
await page.hover("#wp-admin-bar-my-account-media");
42+
const navigationPromise = page.waitForNavigation();
43+
await page.locator("#wp-admin-bar-my-account-media").click();
44+
await navigationPromise;
4145
// Wait for NavBar to stable the page.
4246
await page.waitForSelector("#object-nav");
4347
// Click Upload Button for opening up upload panel

0 commit comments

Comments
 (0)