Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add e2e test for the plugin action link #403

Merged
merged 2 commits into from
Sep 27, 2021

Conversation

GaryJones
Copy link
Contributor

@GaryJones GaryJones commented Sep 25, 2021

Description

Adds an e2e test for the plugin action link.

This based on feature/extract-plugin-action-link branch (and so contains the same file changes as it as well as the e2e test and readme file changes). Pulled against the feature branch, as the feature branch adds in a class that the e2e test uses to target an element. PR #401 should be merged first, and then this PR can be rebased on to develop as per usual, and only the two relevant changed files will be left.

The test logs in, activates the plugin, goes to the plugin page, looks for and clicks the Settings link in the Parse.ly plugin row, and then checks if the Settings page is loaded by checking for the Version string we have there.

I also updated the e2e test readme, since docker-composer is now docker compose.

Motivation and Context

Ideally, all UI-related code should have an e2e test to check the functionality and behaviour is present.

I'll note that we may not consider the ability to click a Settings link on the Plugins page to be a critical user journey, but whilst we're still very light on e2e tests, I think it's worthwhile to get in, even if it's removed later on.

How Has This Been Tested?

Ran e2e test locally (but had failures - see #402) but verified it was actually correct by watching the test interactively and seeing the pass here in the CI.

@GaryJones GaryJones added this to the 2.6.0 milestone Sep 25, 2021
@GaryJones GaryJones self-assigned this Sep 25, 2021
@GaryJones GaryJones requested a review from a team as a code owner September 25, 2021 14:36
@GaryJones GaryJones changed the base branch from feature/extract-plugin-action-link to develop September 25, 2021 14:36
Copy link
Contributor

@pauarge pauarge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pauarge pauarge merged commit 9be8f75 into develop Sep 27, 2021
@pauarge pauarge deleted the feature/plugin-action-link-e2e-test branch September 27, 2021 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants