Make WordPress Core

Opened 3 months ago

Last modified 7 weeks ago

#54334 new defect (bug)

E2E tests for Uploading New Version of Themes & Plugins

Reported by: juhise Owned by:
Milestone: 6.0 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

This is the feature of showing notice when uploading a new version of an already installed theme/plugin

This ticket is to add E2E test for this feature

Change History (11)

This ticket was mentioned in PR #1786 on WordPress/wordpress-develop by juhi123.


3 months ago

  • Keywords has-patch has-unit-tests added

Related Trac Ticket: https://core.trac.wordpress.org/ticket/54334

---

# Test Scenario

## Install the old plugin from the uploader

Given that plugin zip is present
Go to Plugin -> Add New
Click on Upload Plugin
Choose File: Upload the older version of the plugin
When I click on Install, I should see the Activate Plugin button

I go to plugins->installed plugin and should see old plugin version

## Install the new plugin from the uploader

Given that plugin zip is present
Go to Plugin -> Add New
Click on Upload Plugin
Choose File: Upload the new version of the plugin
When I click on Install, I see the `Replace current with uploaded
` button
When I click on “Replace current with uploaded” I should see the Activate Plugin button

I go to plugins->installed plugin and should see the new plugin version

## Cancel the old version upload
Given that plugin zip is present
Go to Plugin -> Add New
Click on Upload Plugin
Choose File: Upload the older version of the plugin
When I click on Cancel and go back, I should be on plugin-install.php URL

#2 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 5.9

This ticket was mentioned in PR #1807 on WordPress/wordpress-develop by JustinyAhin.


3 months ago

Related Trac Ticket: https://core.trac.wordpress.org/ticket/54334

## Tests scenarios

  • Replace an installed theme with a different version by uploading
  • Cancel and go back while uploading a new theme version

This ticket was mentioned in PR #1813 on WordPress/wordpress-develop by JustinyAhin.


3 months ago

Related Trac Ticket: https://core.trac.wordpress.org/ticket/54334

## Test Scenario

  • Replace the old theme by uploading a new version
  • Cancel and go back to the old theme while uploading a new version

#5 @prbot
3 months ago

JustinyAhin commented on PR #1813:

@kevin940726 @tellthemachines @hellofromtonya this PR is ready for reviews.
cc @juhi123

#6 @prbot
2 months ago

JustinyAhin commented on PR #1813:

Hi @kevin940726 👋🏻
Any updates for your review? I also created this PR https://github.com/WordPress/wordpress-develop/pull/1858 for the helpers for e2e in Core.

#7 @prbot
2 months ago

kevin940726 commented on PR #1813:

Hi @JustinyAhin! Sorry, been busy with 5.9 and other things. I'll try to find some time to review this 🙇‍♂️ !

#8 @prbot
2 months ago

JustinyAhin commented on PR #1813:

Hi @JustinyAhin! Sorry, been busy with 5.9 and other things. I'll try to find some time to review this 🙇‍♂️ !

Thank you, Kevin :)

#9 @hellofromTonya
2 months ago

  • Milestone changed from 5.9 to 6.0

As today is 5.9 Beta 1, moving this to 6.0. Tests are not strictly bound to a milestone. Once the patch is approved and ready, it can committed.

This ticket was mentioned in PR #1931 on WordPress/wordpress-develop by JustinyAhin.


2 months ago

Related Trac Ticket: https://core.trac.wordpress.org/ticket/54334

## Test Scenario

  • Replace the old plugin when uploading a new version
  • Cancel and go back to the old plugin while uploading a new version

#11 @prbot
7 weeks ago

JustinyAhin commented on PR #1931:

Cc @kevin940726, when you have some time, this PR might need some review.

Note: See TracTickets for help on using tickets.