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

fix functional tests in services.spec #2781

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

ArtjomsPorss
Copy link
Contributor

Description

fix of 2 functional tests

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Signed-off-by: aporss <art.porss@yahooinc.com>
Comment on lines +59 to +61
expect(
url.includes('athenz-guide') || url.includes('yo/service-instances')
).toBe(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

url can be either depending on whether the test is run locally or via SD

@@ -82,35 +84,28 @@ describe('services screen tests', () => {
await modalDeleteButton.click();
});

describe('services screen tests', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

duplicate 'describe' declaration removed, so most of the change here is just indentation fix

Comment on lines -92 to +91
let domain = 'athenz.dev.test-non-admin';
let testDomain = await $(`a*=${domain}`);
await browser.waitUntil(async () => await testDomain.isClickable());
await testDomain.click();
it('when clicking "Allow" button on a provider without having appropriate authorisation, the error should be displayed to the right of the button', async () => {
await console.log(`testtesttest inside second test`)
// open browser
await browser.newUser();
await browser.url(`/domain/athenz.dev.test-non-admin/role`);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix of the second test - navigate to domain directly via url, since the user is not its memeber and thus domain is not visible in the list of domains on the right in ui

@ArtjomsPorss ArtjomsPorss marked this pull request as ready for review October 25, 2024 14:03
@havetisyan havetisyan merged commit b2840f7 into AthenZ:master Oct 25, 2024
3 checks passed
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