-
Notifications
You must be signed in to change notification settings - Fork 0
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
Account update leaf 4559 - Test Scenario #1 #15
Open
22MGreen
wants to merge
3
commits into
main
Choose a base branch
from
AccountUpdate-LEAF-4559
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Empty file.
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,95 @@ | ||
import { test, expect, Locator } from '@playwright/test'; | ||
|
||
test.use({ | ||
ignoreHTTPSErrors: true | ||
}); | ||
|
||
test('noGroupsOrPositions', async ({ page }, testInfo) => { | ||
|
||
await page.goto('https://host.docker.internal/Test_Request_Portal/admin/'); | ||
//Open the New Account Update Page | ||
await page.getByRole('button', { name: ' New Account Updater' }).click(); | ||
//Sync the Service forst | ||
|
||
await page.getByRole('link', { name: 'Sync Services' }).click(); | ||
|
||
//Wait for the new page to popup | ||
const page1Promise = page.waitForEvent('popup'); | ||
const page1 = await page1Promise; | ||
|
||
//Verify the Sync Service was completed | ||
await expect(page1.getByText('Syncing has finished. You are')).toBeInViewport(); | ||
|
||
//Return the the Admin page | ||
await page1.getByLabel('admin submenu').click(); | ||
await page1.getByLabel('admin submenu').click(); | ||
await page1.getByRole('link', { name: 'Admin Panel' }).click(); | ||
|
||
//Return to the New Account Update page | ||
const acctUpdate:Locator = page1.getByRole('button', { name: ' New Account Updater' }); | ||
await acctUpdate.click(); | ||
|
||
//Identify the Old Account to be disabled | ||
const OldRep:Locator = page1.locator('css=input.employeeSelectorInput').nth(0); | ||
await OldRep.click(); | ||
await OldRep.fill("vtrmvtlynnette"); | ||
await page1.getByRole('cell', { name: 'Jacobs, Gilbert Wilderman.' }).click(); | ||
|
||
|
||
const oldAcct:Locator = page1.getByLabel('Jacobs, Gilbert Wilderman.'); | ||
oldAcct.click(); | ||
|
||
|
||
const screenshot = await page.screenshot() | ||
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' }); | ||
|
||
// Enter New Account information | ||
const newRep:Locator = page1.locator('css=input.employeeSelectorInput').nth(1); | ||
await newRep.click(); | ||
await newRep.fill("vtrkmwroseann"); | ||
|
||
|
||
const newAcct:Locator = page1.getByLabel('Greenholt, Shirlene Parisian'); | ||
newAcct.click(); | ||
|
||
//await expect(page.getByRole('button', { name: 'Preview Changes' })).toBeInViewport(); | ||
|
||
await expect(page1.getByText('New Account Search results')).toBeVisible(); | ||
|
||
|
||
//Click to View Changes | ||
|
||
const previewChange:Locator = page1.getByRole('button', {name: 'Preview Changes'}); | ||
await previewChange.hover(); | ||
await previewChange.click (); | ||
|
||
|
||
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' }); | ||
|
||
//Wait for page to refresh ( | ||
|
||
|
||
//Veirfy Goups and Positions is empty. | ||
|
||
await expect (page1.locator('#grid_groups_info')).toContainText('No groups found'); | ||
|
||
await expect (page1.locator('#grid_positions_info')).toContainText('No Positions found'); | ||
|
||
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' }); | ||
|
||
//Accept changes | ||
await page1.getByRole('button', { name: 'Update Records' }).click(); | ||
|
||
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' }); | ||
|
||
//await expect(page1.getByText('Syncing has finished. You are')).toBeInViewport(); | ||
//Verify there are not any group/positions updates | ||
await expect(page1.locator('#groups_no_updates')).toContainText('no updates'); | ||
await expect(page1.locator('#positions_no_updates')).toContainText('no updates'); | ||
|
||
//No processing errors | ||
await expect(page.locator('#no_errors')).toContainText('no errors'); | ||
await testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' }); | ||
|
||
|
||
}); |
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,82 @@ | ||
import { test, expect, Locator } from '@playwright/test'; | ||
|
||
test.use({ | ||
ignoreHTTPSErrors: true | ||
}); | ||
|
||
test.only('oldAcctGroupsAndPosition', async ({ page }) => { | ||
|
||
await page.goto('https://host.docker.internal/Test_Request_Portal/admin/'); | ||
//Open the New Account Update Page | ||
await page.getByRole('button', { name: ' New Account Updater' }).click(); | ||
//Sync the Service forst | ||
|
||
await page.getByRole('link', { name: 'Sync Services' }).click(); | ||
|
||
//Wait for the new page to popup | ||
const page1Promise = page.waitForEvent('popup'); | ||
const page1 = await page1Promise; | ||
|
||
//Verify the Sync Service was completed | ||
await expect(page1.getByText('Syncing has finished. You are')).toBeInViewport(); | ||
|
||
//Return the the Admin page | ||
await page1.getByLabel('admin submenu').click(); | ||
await page1.getByLabel('admin submenu').click(); | ||
await page1.getByRole('link', { name: 'Admin Panel' }).click(); | ||
|
||
//Return to the New Account Update page | ||
const acctUpdate:Locator = page1.getByRole('button', { name: ' New Account Updater' }); | ||
await acctUpdate.click(); | ||
|
||
//Identify the Old Account to be disabled | ||
const OldRep:Locator = page1.locator('css=input.employeeSelectorInput').nth(0); | ||
await OldRep.click(); | ||
await OldRep.fill("vtriujtalisha"); | ||
//await expect(page.getByText('Old Account Search results')).toBeInViewport(); | ||
//await expect(page.getByRole('cell', { name: 'Jacobs, Gilbert Wilderman.' })).toBeInViewport(); | ||
await page1.getByRole('cell', { name: 'Kozey, Kirstin Schimmel.' }).click(); | ||
|
||
|
||
const oldAcct:Locator = page1.getByLabel('Kozey, Kirstin Schimmel.'); | ||
oldAcct.click(); | ||
|
||
|
||
|
||
// Enter New Account information | ||
const newRep:Locator = page1.locator('css=input.employeeSelectorInput').nth(1); | ||
await newRep.click(); | ||
await newRep.fill("vtrvxhconception"); | ||
|
||
|
||
const newAcct:Locator = page1.getByLabel('Predovic, Augustine Hammes.'); | ||
newAcct.click(); | ||
|
||
await expect(page1.getByText('New Account Search results')).toBeVisible(); | ||
|
||
//Click to View Changes | ||
const previewChange:Locator = page1.getByRole('button', {name: 'Preview Changes'}); | ||
await previewChange.hover(); | ||
await previewChange.click (); | ||
|
||
//Old Account with Groups & Positions | ||
|
||
//Veirfy Goups and Positions is empty have value | ||
|
||
await expect (page1.locator('#grid_groups_info')).toContainText('No groups found'); | ||
|
||
await expect (page1.locator('#grid_positions_info')).toContainText('No Positions found'); | ||
|
||
//Accept changes | ||
await page1.getByRole('button', { name: 'Update Records' }).click(); | ||
|
||
//await expect(page1.getByText('Syncing has finished. You are')).toBeInViewport(); | ||
//Verify there are not any group/positions updates | ||
await expect(page1.locator('#groups_no_updates')).toContainText('no updates'); | ||
await expect(page1.locator('#positions_no_updates')).toContainText('no updates'); | ||
|
||
//No processing errors | ||
await expect(page.locator('#no_errors')).toContainText('no errors'); | ||
|
||
|
||
}); |
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.
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.
This test is still failing on my local machine. Please also remove the .only for the final version, since this causes only this test to run.