This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
parity_statuses table, details #7358
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
77025d7
statuses parity - table,details, new,delete
4acb595
Merge branch 'master' into kannan-victory-1
gbkannan89 26211f5
monu statuses moved under servers
gbkannan89 057fa66
breadcrumbs removed,license added,model from lib
gbkannan89 07869be
lint fixes
gbkannan89 4bcdc44
lint error fixes
gbkannan89 2c9c9cb
statuses test cases added
gbkannan89 9b2c389
lint fixes
gbkannan89 9e4a8fb
added last line
gbkannan89 b5ed031
lazy load and statuses service removed
gbkannan89 defc015
lint error and comments addressed
gbkannan89 97dac47
removed reactive forms module import
gbkannan89 9703619
comments addressed
gbkannan89 dadee3f
statuses parity - table,details, new,delete
406c053
monu statuses moved under servers
gbkannan89 8727cea
breadcrumbs removed,license added,model from lib
gbkannan89 c0a237a
lint fixes
gbkannan89 64669c7
lint error fixes
gbkannan89 e26344a
statuses test cases added
gbkannan89 34edeb2
lint fixes
gbkannan89 869aea5
added last line
gbkannan89 c234a37
lazy load and statuses service removed
gbkannan89 d3cec1f
lint error and comments addressed
gbkannan89 d0c2728
removed reactive forms module import
gbkannan89 0270d98
comments addressed
gbkannan89 5fd8e1d
Merge branch 'kannan-victory-1' of https://github.com/gbkannan89/traf…
gbkannan89 8f4026b
Merge branch 'master' into kannan-victory-1
gbkannan89 cfcadaf
lint fixes
gbkannan89 3b58033
test clean up statuses
gbkannan89 9fd113f
Merge branch 'master' into kannan-victory-1
gbkannan89 7c42dc3
test file base correction for future test cases
gbkannan89 501a8f8
Merge branch 'master' into kannan-victory-1
gbkannan89 7a4698f
latest changes for comments
gbkannan89 fb0b0b3
latest changes
gbkannan89 4669bc0
added button for new status
gbkannan89 b1f8f01
latest changes applied to review comments
gbkannan89 4c2a5ca
Merge branch 'master' into kannan-victory-1
gbkannan89 91cc331
latest changes
gbkannan89 152b395
lint fixes
gbkannan89 f3613f1
reactive form corrections lint error
gbkannan89 64fa23b
latest changes
gbkannan89 c5f623b
merge comments fixes
gbkannan89 edb7b4c
Merge branch 'master' into kannan-victory-1
gbkannan89 8d84b2f
Merge branch 'master' into kannan-victory-1
gbkannan89 d2a684f
e2e test cases added
gbkannan89 a13384d
url corrected
gbkannan89 b05fa6a
added name to fix selector in dom
gbkannan89 758314f
e2e test error fix
gbkannan89 9156cb9
added element id and lastdate to dom
gbkannan89 b3af5ec
error fix
gbkannan89 cfdb3e6
Merge branch 'master' into kannan-victory-1
gbkannan89 a4fd9fa
comment addressed
gbkannan89 0b59682
comments addressed
gbkannan89 789cdde
comment addressed
gbkannan89 d3ab71a
comment fixed
gbkannan89 cdedbec
Merge branch 'master' into kannan-victory-1
gbkannan89 e3d51d5
# removed
gbkannan89 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
42 changes: 42 additions & 0 deletions
42
experimental/traffic-portal/nightwatch/page_objects/statuses/statusDetail.ts
This file contains hidden or 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,42 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| import { EnhancedPageObject } from "nightwatch"; | ||
|
|
||
| /** | ||
| * Defines the PageObject for Status Details. | ||
| */ | ||
| export type StatusDetailPageObject = EnhancedPageObject<{}, typeof statusDetailPageObject.elements>; | ||
|
|
||
| const statusDetailPageObject = { | ||
| elements: { | ||
| description: { | ||
| selector: "input[name='description']" | ||
| }, | ||
| id: { | ||
| selector: "input[name='id']" | ||
| }, | ||
| lastUpdated: { | ||
| selector: "input[name='lastUpdated']" | ||
| }, | ||
| name: { | ||
| selector: "input[name='name']" | ||
| }, | ||
| saveBtn: { | ||
| selector: "button[type='submit']" | ||
| } | ||
| }, | ||
| }; | ||
|
|
||
| export default statusDetailPageObject; |
45 changes: 45 additions & 0 deletions
45
experimental/traffic-portal/nightwatch/page_objects/statuses/statusesTable.ts
This file contains hidden or 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,45 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| import { EnhancedPageObject, EnhancedSectionInstance, NightwatchAPI } from "nightwatch"; | ||
|
|
||
| import { TABLE_COMMANDS, TableSectionCommands } from "../../globals/tables"; | ||
|
|
||
| /** | ||
| * Defines the Statuses table commands | ||
| */ | ||
| type StatusesTableCommands = TableSectionCommands; | ||
|
|
||
| /** | ||
| * Defines the Page Object for the Statuses page. | ||
| */ | ||
| export type StatusesTablePageObject = EnhancedPageObject<{}, {}, EnhancedSectionInstance<StatusesTableCommands>>; | ||
|
|
||
| const statusesTablePageObject = { | ||
| api: {} as NightwatchAPI, | ||
| sections: { | ||
| statusesTable: { | ||
| commands: { | ||
| ...TABLE_COMMANDS | ||
| }, | ||
| elements: {}, | ||
| selector: "mat-card" | ||
| } | ||
| }, | ||
| url(): string { | ||
| return `${this.api.launchUrl}/core/statuses`; | ||
| } | ||
| }; | ||
|
|
||
| export default statusesTablePageObject; |
44 changes: 44 additions & 0 deletions
44
experimental/traffic-portal/nightwatch/tests/statuses/detail.spec.ts
This file contains hidden or 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,44 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| describe("Status Detail Spec", () => { | ||
| it("Test status", () => { | ||
| const page = browser.page.statuses.statusDetail(); | ||
| browser.url(`${page.api.launchUrl}/core/statuses/${browser.globals.testData.statuses.id}`, res => { | ||
| browser.assert.ok(res.status === 0); | ||
| page.waitForElementVisible("mat-card") | ||
| .assert.enabled("@name") | ||
| .assert.enabled("@description") | ||
| .assert.enabled("@saveBtn") | ||
| .assert.not.enabled("@id") | ||
| .assert.not.enabled("@lastUpdated") | ||
| .assert.valueEquals("@name", browser.globals.testData.statuses.name) | ||
| .assert.valueEquals("@id", String(browser.globals.testData.statuses.id)); | ||
| }); | ||
| }); | ||
|
|
||
| it("New Status", () => { | ||
| const page = browser.page.statuses.statusDetail(); | ||
| browser.url(`${page.api.launchUrl}/core/statuses/new`, res => { | ||
| browser.assert.ok(res.status === 0); | ||
| page.waitForElementVisible("mat-card") | ||
| .assert.enabled("@name") | ||
| .assert.enabled("@description") | ||
| .assert.enabled("@saveBtn") | ||
| .assert.not.elementPresent("@id") | ||
| .assert.not.elementPresent("@lastUpdated") | ||
| .assert.valueEquals("@name", ""); | ||
| }); | ||
| }); | ||
| }); |
26 changes: 26 additions & 0 deletions
26
experimental/traffic-portal/nightwatch/tests/statuses/table.spec.ts
This file contains hidden or 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,26 @@ | ||
| /* | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| describe("Statuses Spec", () => { | ||
| it("Loads elements", async () => { | ||
| await browser.page.common() | ||
| .section.sidebar | ||
| .navigateToNode("statuses", ["serversContainer"]); | ||
| await browser.waitForElementPresent("input[name=fuzzControl]"); | ||
| await browser.elements("css selector", "div.ag-row", rows => { | ||
| browser.assert.ok(rows.status === 0); | ||
| browser.assert.ok((rows.value as []).length >= 2); | ||
| }); | ||
| }); | ||
| }); |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.