-
Notifications
You must be signed in to change notification settings - Fork 20
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
Updated tests (critical path and smoke) with cy.visit() #4286
Conversation
@@ -120,23 +121,22 @@ describe('MARC', () => { | |||
}); | |||
|
|||
cy.loginAsAdmin(); |
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.
In this case it's better to use something like this
cy.loginAsAdmin({
path: TopMenu.inventoryPath,
waiter: InventoryInstances.waitContentLoading,
}).then(() => {
InventoryInstances.searchByTitle(testData.createdAuthorityID[0]);
InventoryInstances.selectInstance();
InventoryInstance.editMarcBibliographicRecord();
.....
Because you can't avoid very first time visit call, so you can navigate to nessesary page within admin log in call.
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.
Done
@@ -177,28 +178,27 @@ describe('MARC', () => { | |||
}); | |||
|
|||
cy.loginAsAdmin(); |
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.
And the same here
https://folio-org.atlassian.net/browse/FAT-16829