Skip to content
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

Merged
merged 7 commits into from
Oct 3, 2024
Merged

Conversation

Sherzod-Kenjaev
Copy link
Contributor

Copy link

github-actions bot commented Oct 2, 2024

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 988cffc. ± Comparison against base commit 201da50.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 2, 2024

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 988cffc. ± Comparison against base commit 201da50.

♻️ This comment has been updated with latest results.

@Sherzod-Kenjaev Sherzod-Kenjaev changed the title Fixed tests with issue auth/refresh Fixed tests (critical path and smoke) with cy.visit() Oct 2, 2024
@Sherzod-Kenjaev Sherzod-Kenjaev requested a review from a team October 2, 2024 08:08
@Sherzod-Kenjaev Sherzod-Kenjaev changed the title Fixed tests (critical path and smoke) with cy.visit() Updated tests (critical path and smoke) with cy.visit() Oct 2, 2024
@@ -120,23 +121,22 @@ describe('MARC', () => {
});

cy.loginAsAdmin();
Copy link
Contributor

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.

Copy link
Contributor Author

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the same here

@ostapwd ostapwd merged commit 13e8973 into master Oct 3, 2024
5 checks passed
@ostapwd ostapwd deleted the FAT-16829 branch October 3, 2024 11:30
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.

4 participants