-
Notifications
You must be signed in to change notification settings - Fork 16
feat(testing): add wdi5 e2e scope #23
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
Open
vobu
wants to merge
16
commits into
SAP-samples:testing
Choose a base branch
from
vobu:testing-wdi5
base: testing
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 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
22c61f5
Adapt to "ts-types-esm" -> "types" renaming
akudev c5d4fce
Update dependencies (incl. UI5 1.116.0 / DT Types 1.116.1)
petermuessig 8cbf86f
chore(deps): wdi5 related
vobu 02e2a49
chore(eslint): extend with wdi5 ts flavor
vobu 075d604
feat(wdi5): add mvp artifacts
vobu 8d7a79d
chore(deps): bump
vobu eb31920
Merge remote-tracking branch 'upstream/main' into testing-wdi5
vobu 6149c8b
chore(deps): bump
vobu b69cfbc
feat: wdi5 test
vobu a4b6851
docs: end-to-end tests
vobu 33925d5
test(e2e): better verbosity
vobu 9ee8ac5
fix: openui5 types
vobu 2f171ac
refactor: semicolons
vobu 579c929
fix(deps): re-added ts
vobu 0f16f92
chore(deps): maintenance bump
vobu d69534d
refactor: better assertion
vobu 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
feat: wdi5 test
~ opa5 test journey
- Loading branch information
commit b69cfbc8d67b200e28b1c388739255d3d5ddd622
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
import AppPage from "./pages/AppPage" | ||
|
||
describe("Hello!", () => { | ||
it("Should open the Hello dialog", async () => { | ||
await AppPage.iPressTheSayHelloWithDialogButton() | ||
const dialogVisible = await AppPage.iShouldSeeTheHelloDialog() | ||
expect(dialogVisible).toBeTruthy() | ||
}) | ||
|
||
it("Should close the Hello dialog", async () => { | ||
await AppPage.iPressTheOkButtonInTheDialog() | ||
const dialogNotVisible = await AppPage.iShouldNotSeeTheHelloDialog() | ||
expect(dialogNotVisible).toBeTruthy() | ||
}) | ||
}) |
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,31 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-return */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | ||
import Button from "sap/m/Button" | ||
import MessageBox from "sap/m/MessageBox" | ||
|
||
import { buttonLocator, dialogLocator, OKButtonLocator } from "./locators" | ||
|
||
class AppPage { | ||
async iPressTheSayHelloWithDialogButton() { | ||
const button = await browser.asControl<Button>(buttonLocator) | ||
await button.press() | ||
} | ||
|
||
async iShouldSeeTheHelloDialog(): Promise<boolean> { | ||
const dialog = await browser.asControl<MessageBox>(dialogLocator) | ||
return await dialog.getVisible<boolean>() | ||
} | ||
|
||
async iPressTheOkButtonInTheDialog() { | ||
await browser.asControl(OKButtonLocator).press() | ||
} | ||
|
||
async iShouldNotSeeTheHelloDialog(): Promise<boolean> { | ||
const dialog = await browser.asControl<MessageBox>(dialogLocator) | ||
return await dialog.isInitialized() | ||
} | ||
} | ||
|
||
export default new AppPage() |
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,25 @@ | ||
export const buttonLocator = { | ||
selector: { | ||
id: "container-ui5.typescript.helloworld---app--helloButton" | ||
} | ||
} | ||
|
||
export const dialogLocator = { | ||
selector: { | ||
controlType: "sap.m.Dialog", | ||
properties: { | ||
type: "Message" | ||
}, | ||
searchOpenDialogs: true | ||
} | ||
} | ||
|
||
export const OKButtonLocator = { | ||
selector: { | ||
controlType: "sap.m.Button", | ||
properties: { | ||
text: "OK" | ||
}, | ||
searchOpenDialogs: true | ||
} | ||
} |
This file was deleted.
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.