-
Notifications
You must be signed in to change notification settings - Fork 282
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
Conversation
Signed-off-by: aporss <art.porss@yahooinc.com>
expect( | ||
url.includes('athenz-guide') || url.includes('yo/service-instances') | ||
).toBe(true); |
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.
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', () => { |
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.
duplicate 'describe' declaration removed, so most of the change here is just indentation fix
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`); |
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.
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
Description
fix of 2 functional tests
Contribution Checklist: