-
Notifications
You must be signed in to change notification settings - Fork 605
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
Advanced options in git import Automation and Framework utility functions #4694
Advanced options in git import Automation and Framework utility functions #4694
Conversation
1. git normal flow 2. git flow with advanced options
appFunctions - Generic to the application like navigation updated the scenario & view file for git import
1. Delete App component in topology is included 2. README.md is included which helps for automation testers 3. Test Data & Utilities are included which helps to create automation scripts faster
/review @sanketpathak |
/assign @christianvogt |
frontend/packages/dev-console/integration-tests/utilities/appFunctions.ts
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/utilities/appFunctions.ts
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/tests/topology.scenario.ts
Outdated
Show resolved
Hide resolved
Formatting lines in README.md.. Co-Authored-By: Andrew Ballantyne <8126518+andrewballantyne@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to clean up your lints, they are not optional items. Recommend using Prettier to fix most of them.
yarn prettier-all
will clean up your spacing problems. But you'll still have 31 lint problems left over.
frontend/packages/dev-console/integration-tests/utilities/elementInteractions.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makambalaji I'm still having issues running this.
I get
sendKeys failed for applicationName - retry nodejs-ex-git-apptext wastestapp-0401-1153-1353 testapp-0401-1153-1353
sendKeys failed for applicationName - second retry nodejs-ex-git-apptext wastestapp-0401-1153-1353text wastestapp-0401-1153-1353 testapp-0401-1153-1353
During the test run and then this error when it fails:
1) git import flow : public git normal flow
WebDriverError: element click intercepted: Element <input name="name" data-test-id="application-form-app-name" id="form-input-name-field" aria-describedby="form-input-name-field-helper" class="pf-c-form-control" type="text" aria-invalid="false" required="" value="nodejs-ex-git"> is not clickable at point (712, 1183). Other element would receive the click: <div class="pf-c-form__actions">...</div>
(Session info: headless chrome=80.0.3987.149)
(Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Mac OS X 10.15.3 x86_64)
When was the last time you ran it fully? I am wondering if recent feature changes have caused issues with this test. Also, how do you run the tests (I can't use the normal script because of the implicit tie-in to the Chrome version), I use: yarn run test-suite --suite "devconsole" --params.openshift true
and it has worked in the past for other tests.
Let me know how your next run goes and perhaps I can work around what is going on for me.
frontend/packages/dev-console/integration-tests/tests/git-import-flow.scenario.ts
Outdated
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/tests/git-import-flow.scenario.ts
Outdated
Show resolved
Hide resolved
…rt-flow.scenario.ts Co-Authored-By: Andrew Ballantyne <8126518+andrewballantyne@users.noreply.github.com>
Please use below commands to execute the code export FORCE_CHROME_BRANCH_BASE="665006" export FORCE_CHROME_BRANCH_SHA256SUM="a1ae2e0950828f991119825f62c24464ab3765aa219d150a94fb782a4c66a744" NO_HEADLESS=true ./test-gui.sh devconsole
…aji/console into gitAdvancedOptions-test
You're going to need to rebase too. |
frontend/packages/dev-console/integration-tests/testData/git-import-flow.data.ts
Show resolved
Hide resolved
frontend/packages/dev-console/integration-tests/tests/git-import-flow.scenario.ts
Show resolved
Hide resolved
/lgtm |
Administrator = ' Administrator Perspective', | ||
} | ||
|
||
export const naviagteTo = async function(opt: NavigationMenu) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New nav changes will break this :(
Needs updating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I understand, but I want them to keep at one place. Which will be easy for maintenance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What i'm saying is that the navigation has changed.
Therefore parts of this function are now invalid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase and re-run @makambalaji You'll see the nav changes and your tests should have issues getting the items (if it actually broke and didn't keep the data-test-ids).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay , got it will check and update it
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, gajanan194, makambalaji The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: [ODC-1650] Advance Option for import from git [Automation Script] and also created framework structure
Analysis / Root cause: This PR give the framework structure for automation and also includes script for Advance Option for import from git
Solution Description: This script mainly utilizes for smoke test suite - New App Creation and deletion of the same
Screen shot of Test Log:
Unit test coverage report: NA
Test setup:
Export the kubeconfig and login through CLI with kubeadmin credentials.
Run following commands to create the build:
i. source contrib/oc-environment.sh
ii. ./bin/bridge
Go to the edited code repo and run following command:
NO_HEADLESS=true ./test-gui.sh devconsole
Browser conformance: Chrome