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

[RFR] Add methods for questionnaire class #749

Merged
merged 5 commits into from
Oct 19, 2023

Conversation

nachandr
Copy link
Contributor

@nachandr nachandr commented Oct 17, 2023

To do:

  1. Will add method for enabling/disabling questionnaire in a follow up PR.
  2. Move selectors to view file.


export class AssessmentQuestionnaire {
public static fullUrl = Cypress.env("tackleUrl") + "/assessment";

constructor(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to add fileName in constructor ?
That will make it a mandatory parameter to initialize this class.

User can just enable legacyPathfinder and not necessarily import one.

We can make fileName a parameter in importQuestionnaire() method and pass it from test in case when we are importing.

Copy link
Contributor Author

@nachandr nachandr Oct 17, 2023

Choose a reason for hiding this comment

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

@sshveta , thanks for the question.
My plan is to have the following methods for all questionnaires including the Legacy Pathfinder questionnaire. I know the import method is not relevant to the Legacy Pathfinder questionnaire since it's already available , but the other methods are . I'll look into this to figure out what works the best for this class.

  1. Import
  2. Export
  3. View
  4. Delete
  5. Enable
  6. Disable

Signed-off-by: Nandini Chandra <[email protected]>
@nachandr nachandr changed the title [WIP] Add method for importing questionnaire [RFR] Add methods to questionnaire class Oct 18, 2023
Signed-off-by: Nandini Chandra <[email protected]>
@nachandr nachandr changed the title [RFR] Add methods to questionnaire class [RFR] Add methods for questionnaire class Oct 19, 2023
@sshveta sshveta merged commit 2ec169b into konveyor:main Oct 19, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants