Skip to content

Commit

Permalink
e2e - more test updates to fix failed nightly tests (#2305)
Browse files Browse the repository at this point in the history
* Updates

* Test updates for button updates

* More updates for buttons

* Button updates

* Test updates for UI components

* Updates for event log, status, notifications

* e2e updates

* File service, configuration service, welcome

* Updates on PDF, script and notifications

* subscription and service status updates

* Updates on events and directory

* e2e updates for status, directory and tenant admin

* directory and service status

* Notifications test updates

* One comment for roles in notification type modal

* e2e test updates for status and notifications

* Changed var to let

* e2e test updates for configuration

* e2e test updates for welcome page

* Removed unused element

* e2e updates

* test updates for events and script

* e2e updates on welcome page and notifications

* Fixes for service status

* updates for file service

* e2e test updates for event, file, notification

* Update for pdf

* update for status

* Update

* e2e updates

* e2e updates

* e2e updates

* e2e updates

* Added a config setting

* Commented out edit PDF template steps

* Update

* update

* Updated file tests

* Updated pdf test

* Removed headless=true command parameter

* Switch e2e test run from Chrome to Electron

* Switch e2e test run from headless to headed

* e2e fixes

* e2e updates

* e2e updates

* Test fixes

* Updated cs-322 with validation of open icon

* Added validation of pdf template body

* Added a couple of steps of selecting filters

* Added a walkaround

* Walkaround for 30 second refresh

* Added more wait to avoid random test failures

* File service test updates

* Put accessiblity test step back

* Commented out accessibility step for file types

* Added support info validation on subscriber app

* Fixed a timestamp bug

* Added more delay on file type name

* test updates

* subscriber app test update

* Updated load more button page object

* e2e test updates

* Fixed a typo

* Added a wait

* Updates of subscription management tests

* test updates for calendar and script

* Test updates

---------

Co-authored-by: Howard Zhang <[email protected]>
  • Loading branch information
howard-zhang and howard-zhang-goa authored Nov 21, 2023
1 parent 521d843 commit a785556
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,21 @@ When('the user enters "{string}" in payload schema in configuration definition m

When('the user enters {string} in payload schema in configuration definition modal', function (payload) {
cy.wait(1000); // Wait for the schema field to be editable
// Clearing schema field doesn't always work. Try 3 times of clearing before entering user data
for (let j = 0; j < 3; j++) {
configurationObj
.configurationDefinitionModalPayloadEditor()
.click({ force: true })
.focus()
.type('{ctrl}a', { force: true })
.wait(1000)
.clear({ force: true });
}
cy.wait(1000);
configurationObj
.configurationDefinitionModalPayloadEditor()
.click({ force: true })
.focus()
.type('{ctrl}a', { force: true })
.wait(1000)
.clear({ force: true })
.wait(1000)
.type(payload, { force: true });
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Then('the user views Delete entry modal for {string}', function (entryName) {
});

When('the user enters {string} in Service, {string} in API, {string} in URL', function (service, api, url) {
directoryObj.entryModalServiceField().shadow().find('input').clear().type(service, { delay: 50, force: true });
directoryObj.entryModalServiceField().shadow().find('input').clear().type(service, { delay: 200, force: true });
if (api.toLowerCase() == 'empty') {
directoryObj.entryModalApiField().shadow().find('input').clear();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ Then('the user views Add application modal', function () {
When(
'the user enters {string} as name and {string} as description and {string} as endpoint',
function (name, description, endpoint) {
statusObj.addEditApplicationNameModalField().shadow().find('input').clear().type(name, { delay: 100, force: true });
statusObj.addEditApplicationNameModalField().shadow().find('input').clear().type(name, { delay: 200, force: true });
statusObj
.addEditApplicationDescriptionModalField()
.shadow()
Expand Down

0 comments on commit a785556

Please sign in to comment.