-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1909 from aziontech/dev
Deploy 2024-11-14
- Loading branch information
Showing
220 changed files
with
8,038 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import selectors from '../../support/selectors' | ||
import generateUniqueName from '../../support/utils' | ||
|
||
let fixtures = {} | ||
|
||
const createEdgeApplicationCase = () => { | ||
// Act | ||
cy.get(selectors.edgeApplication.mainSettings.createButton).click() | ||
cy.get(selectors.edgeApplication.mainSettings.nameInput).type(fixtures.edgeApplicationName) | ||
cy.get(selectors.edgeApplication.mainSettings.addressInput).clear() | ||
cy.get(selectors.edgeApplication.mainSettings.addressInput).type('httpbingo.org') | ||
cy.get(selectors.form.actionsSubmitButton).click() | ||
cy.verifyToast('success', 'Your edge application has been created') | ||
cy.get(selectors.form.actionsCancelButton).click() | ||
|
||
// Assert - Verify the edge application was created | ||
cy.get(selectors.list.searchInput).type(`${fixtures.edgeApplicationName}{enter}`) | ||
cy.get(selectors.list.filteredRow.column('name')).should( | ||
'have.text', | ||
fixtures.edgeApplicationName | ||
) | ||
|
||
// Act - Navigate to the created edge application | ||
cy.get(selectors.list.filteredRow.column('name')).click() | ||
} | ||
|
||
describe('Edge Application Device Groups Spec', { tags: ['@dev2'] }, () => { | ||
beforeEach(() => { | ||
cy.login() | ||
fixtures.edgeApplicationName = generateUniqueName('EdgeApp') | ||
fixtures.deviceGroupName = generateUniqueName('DeviceGroup') | ||
cy.openProduct('Edge Application') | ||
createEdgeApplicationCase() | ||
cy.get(selectors.edgeApplication.tabs('Device Groups')).click() | ||
}) | ||
|
||
it('Should creeate and list device groups.', function () { | ||
cy.get(selectors.edgeApplication.deviceGroups.createButton).click() | ||
cy.get(selectors.edgeApplication.deviceGroups.nameInput).type(fixtures.deviceGroupName) | ||
cy.get(selectors.edgeApplication.deviceGroups.userAgentInput).type('(Mobile)') | ||
cy.get(selectors.form.actionsSubmitButton).click() | ||
|
||
//assert | ||
cy.verifyToast('success', 'Your Device Group has been created') | ||
cy.get(selectors.list.searchInput).type(`${fixtures.deviceGroupName}{enter}`) | ||
cy.get(selectors.list.filteredRow.column('name')).should('have.text', fixtures.deviceGroupName) | ||
}) | ||
|
||
afterEach(() => { | ||
// Delete the edge application | ||
cy.deleteEntityFromList({ | ||
entityName: fixtures.edgeApplicationName, | ||
productName: 'Edge Application' | ||
}).then(() => { | ||
cy.verifyToast('Resource successfully deleted') | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.