Skip to content

Testing instructions for critical flows

Sumit Bagthariya edited this page Aug 12, 2024 · 5 revisions

Can activate the plugin without any error

Test Steps

  1. Download the Plugin zip from the Github
  2. Install the plugin zip in the Plugin Uploader screen of the store

Expected Result:

The plugin should be installed and activated without any error or trouble.


X/Twitter connection settings

Test steps:

  1. Sign up for a X/Twitter developer account
  • Click on "Sign up for Free Account" button to proceed with free access.
  • Fill out the Describe all of your use cases of X's data and API field. (You can find an example response in Wp-admin>Settings>Auto post for X/Twitter).
  • Click on "Submit" button, it will redirect you to Developer portal.
  1. Configure access to your X/Twitter app access tokens
  • Go to the X/Twitter developer portal
  • Click on Projects & Apps on the left navigation menu.
  • Find the App and click it to show the Settings page for the App.
  • Click "Setup" under User authentication settings to setup Authentication.
  • Enable OAuth 1.0a and Set App permissions to Read and write.
  • Set the Website URL to your website URL (https://osp.local)
  • Set the Callback URLs fields to your website URL (https://osp.local/wp-admin/admin-post.php?action=authoshare_authorize_callback) and click Save.
  • Switch from the "Settings" tab to the "Keys and tokens" tab.
  • Click on the Generate/Regenerate button in the Consumer Keys section.
  • Copy the API Key and API Key Secret values and paste them below.
  • Save setting
  1. Connect your X/Twitter account
  • After saving settings, you will see the option to connect your X/Twitter account. Enter API Key and API Key Secret which we copy in step - 2

Expected Result:

The connection between the website and X/Twitter should be established successfully, allowing further interactions (e.g., auto-posting).

Screenshot

image


Enable Autopost for

  1. All content types
  2. Selected content types only (Post / Page)

Test steps:

  1. Goto Wp-admin > Settings > Autopost for X/Twitter Settings
  2. Select All content types or Selected content types only
  3. Goto Page or post and create and new post or page
  4. Publish

Expected Result:

  1. Check the Twitter, Post should be tweeted

Enable by default

Test steps:

  1. Goto Wp-admin > Settings > Autopost for X/Twitter Settings
  2. Enable > Enable Autopost by default when publishing content
  3. Save setting

Expected Result:

Once saved, new content published on the site should have the Autopost option enabled by default.