test: Fix default owner test to be able to reach setup page (#5113)

test: fix default owner test
This commit is contained in:
Mutasem Aldmour 2023-01-09 17:23:39 +01:00 committed by GitHub
parent b4a5ff2430
commit 7df0728999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ import { BasePage } from './base';
export class SettingsUsersPage extends BasePage {
url = '/settings/users';
getters = {
setUpOwnerButton: () => cy.getByTestId('action-box').find('button'),
setUpOwnerButton: () => cy.getByTestId('action-box').find('button').first(),
};
actions = {
goToOwnerSetup: () => this.getters.setUpOwnerButton().click(),