Skip to content

[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

Closed
wants to merge 6 commits into from

Conversation

Rinchan20
Copy link
Contributor

test to handle testing that a blood and rna kit can be uploaded and scanned

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',
Copy link
Contributor Author

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');
Copy link
Contributor Author

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);
Copy link
Contributor

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.

@Rinchan20
Copy link
Contributor Author

handled by #2183 - closing this one

@Rinchan20 Rinchan20 closed this Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants