Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2bd78d5
Add e2e test for validate media deletion
pavanpatil2 Nov 4, 2024
f104e3f
Update the file path
pavanpatil2 Nov 4, 2024
fbd8e2b
Update the file path
pavanpatil2 Nov 4, 2024
6e0b540
Update delete-media.test.js
pavanpatil1 Nov 4, 2024
f3bd021
optimize the image
pavanpatil2 Nov 4, 2024
323f763
optimize the image
pavanpatil2 Nov 4, 2024
ef78482
optimize the image
pavanpatil2 Nov 4, 2024
f33c062
optimize the image
pavanpatil2 Nov 4, 2024
3abd5e8
optimize the image
pavanpatil2 Nov 4, 2024
e642533
optimize the image
pavanpatil2 Nov 4, 2024
1c67a6a
optimize the image
pavanpatil2 Nov 5, 2024
03d7d98
remove unuse variable
pavanpatil2 Nov 5, 2024
755d824
upload multiple files
pavanpatil2 Nov 5, 2024
e062d57
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
0d9dd9e
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
5c58754
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
bf2f642
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
7e9ff87
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
7f6af33
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
ce4179c
add visitadmin in beforeeach
pavanpatil2 Nov 5, 2024
c18db30
change asseration
pavanpatil2 Nov 5, 2024
5bf6c4a
change asseration
pavanpatil2 Nov 5, 2024
c59b3ed
change asseration
pavanpatil2 Nov 5, 2024
98b86cf
change asseration
pavanpatil2 Nov 5, 2024
882f1a9
change asseration
pavanpatil2 Nov 5, 2024
9ea8024
change asseration
pavanpatil2 Nov 5, 2024
bbff1fb
change asseration
pavanpatil2 Nov 5, 2024
dd57dc5
change asseration
pavanpatil2 Nov 5, 2024
187fff1
change asseration
pavanpatil2 Nov 5, 2024
1e04e3b
change asseration
pavanpatil2 Nov 5, 2024
0605df6
change asseration
pavanpatil2 Nov 5, 2024
190b26b
change asseration
pavanpatil2 Nov 5, 2024
cea47e1
change asseration
pavanpatil2 Nov 5, 2024
1b17dff
flaky test
pavanpatil2 Nov 5, 2024
34fa44c
fix asseration
pavanpatil2 Nov 5, 2024
9491857
fix asseration
pavanpatil2 Nov 5, 2024
5eca79e
fix asseration
pavanpatil2 Nov 5, 2024
43c50f6
fix asseration
pavanpatil2 Nov 5, 2024
9b640ce
fix flaky test
pavanpatil2 Nov 5, 2024
659d832
check the filter by type test
pavanpatil2 Nov 5, 2024
606ee77
check the filter by type test
pavanpatil2 Nov 5, 2024
a2fdbf1
check the filter by type test
pavanpatil2 Nov 5, 2024
d345089
check the filter by type test
pavanpatil2 Nov 5, 2024
02fd024
check the filter by type test
pavanpatil2 Nov 5, 2024
3316f62
check the filter by type test
pavanpatil2 Nov 5, 2024
dc32201
check the filter by type test
pavanpatil2 Nov 5, 2024
6e52bc7
check the filter by type test
pavanpatil2 Nov 5, 2024
2c3b578
check the filter by type test
pavanpatil2 Nov 5, 2024
34854f1
check the filter by type test
pavanpatil2 Nov 5, 2024
dd497a8
check the filter by type test
pavanpatil2 Nov 5, 2024
22d1acc
check the filter by type test
pavanpatil2 Nov 5, 2024
dbb1edc
check the filter by type test
pavanpatil2 Nov 5, 2024
2b6e2c1
check the filter by type test
pavanpatil2 Nov 5, 2024
f872989
add test outside the folder
pavanpatil2 Nov 5, 2024
d1df054
add test outside the folder
pavanpatil2 Nov 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change asseration
  • Loading branch information
pavanpatil2 committed Nov 5, 2024
commit c59b3edca22b5270cd10c9a0a91ec2a2ec562f27
14 changes: 8 additions & 6 deletions tests/e2e/specs/media-library/delete-media.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@
.first()
.click();
await page.waitForTimeout(2000);
await expect( page.locator( '#message p' ) ).toHaveText(
/Media file permanently deleted./
);
await expect(
page.locator( '#message p' ),
'Media got deleted successfully'
).toBeVisible();

Check failure on line 54 in tests/e2e/specs/media-library/delete-media.test.js

View workflow job for this annotation

GitHub Actions / Test with SCRIPT_DEBUG disabled / Run E2E tests

[chromium] › media-library/delete-media.test.js:31:6 › Delete Media › delete single media

2) [chromium] › media-library/delete-media.test.js:31:6 › Delete Media › delete single media ───── Error: Media got deleted successfully Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: locator('#message p') Expected: visible Received: <element(s) not found> Call log: - Media got deleted successfully with timeout 5000ms - waiting for locator('#message p') 52 | page.locator( '#message p' ), 53 | 'Media got deleted successfully' > 54 | ).toBeVisible(); | ^ 55 | } ); 56 | 57 | test( 'delete Bulk media', async ( { page, admin } ) => { at /home/runner/work/wordpress-develop/wordpress-develop/tests/e2e/specs/media-library/delete-media.test.js:54:5
} );

test( 'delete Bulk media', async ( { page, admin } ) => {
Expand All @@ -73,8 +74,9 @@

await page.getByRole( 'button', { name: 'Apply' } ).first().click();
await page.waitForTimeout(2000);
await expect( page.locator( '#message p' ) ).toHaveText(
/Media file permanently deleted./
);
await expect(
page.locator( '#message p' ),
'Media got deleted successfully'
).toBeVisible();
} );
} );
Loading