-
Notifications
You must be signed in to change notification settings - Fork 4
[WIP] PEPPER-733-kit-upload-test-for-rgp #2088
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
Conversation
test to handle testing that a blood and rna kit can be uploaded and scanned
//Inputting the various kit types that can be uploaded in DSM | ||
//todo Update as needed as more kit upload tests are created | ||
enum KitType { | ||
BLOOD = 'BLOOD', |
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.
all kits (for rgp) are planned to be blood & rna instead of blood (if they aren't already - will check with Jeff)
} | ||
|
||
public getSkipAddressValidationOption(): Locator { | ||
return this.page.locator('text=Skip address validation on upload'); |
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.
need to re-check if spaces are allowed here in typescript - just checked to make sure that the label can be acquired via xpath (but I prefer playwright selector read-ability - so...)
some updates - used help from codegen
running the tests gets to kit upload page now - changed 'verify' to 'assert'
test could not find element with the location given from codegen - test currently goes up to Kit Upload page and then select "Blood & RNA" kit option. Also moved kit type enums to its own file since a lot of samples menu pages will use those.
forgot to use the passed in kit type within the function while checking the test
|
||
test('Can upload a Blood & RNA kit @functional @rgp', async ({ page }) => { | ||
//Go to DSM in order to do a kit upload (type: "BLOOD & RNA") | ||
await welcomePage.selectStudy(Study.RGP); |
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.
I think we want the assertions to live inside the tests, but use the page classes to return values. So maybe have the home page return the study title or the welcome title, and then make the assertion in this file.
handled by #2183 - closing this one |
test to handle testing that a blood and rna kit can be uploaded and scanned