Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MS] Fixed e2e tests related to multi org
Browse files Browse the repository at this point in the history
Max-7 committed Jan 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 72862fd commit dae05f0
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/src/views/home/OrganizationListPage.vue
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ import { AvailableDevice, isDeviceLoggedIn, listAvailableDevices } from '@/parse
import { StorageManager, StorageManagerKey, StoredDeviceData } from '@/services/storageManager';
import { translate } from '@/services/translation';
import HomePageButtons, { HomePageAction } from '@/views/home/HomePageButtons.vue';
import { IonButton, IonCard, IonCardContent, IonCardTitle, IonCol, IonGrid, IonRow, IonText, popoverController } from '@ionic/vue';
import { IonButton, IonCard, IonCardContent, IonCardTitle, IonCol, IonGrid, IonIcon, IonRow, IonText, popoverController } from '@ionic/vue';
import { ellipse } from 'ionicons/icons';
import { DateTime } from 'luxon';
import { Ref, computed, inject, onMounted, ref } from 'vue';
2 changes: 1 addition & 1 deletion client/tests/e2e/specs/test_active_users_page.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ describe('Check active users page', () => {
beforeEach(() => {
cy.visitApp();
cy.login('Boby', 'P@ssw0rd.');
cy.get('.organization-card__manageBtn').click();
cy.get('.organization-card-manageBtn').click();
});

afterEach(() => {
2 changes: 1 addition & 1 deletion client/tests/e2e/specs/test_greet_user_modal.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ describe('Greet user into an organization', () => {
beforeEach(() => {
cy.visitApp();
cy.login('Boby', 'P@ssw0rd.');
cy.get('.organization-card__manageBtn').click();
cy.get('.organization-card-manageBtn').click();
cy.get('.user-menu__item').eq(2).click();
});

2 changes: 1 addition & 1 deletion client/tests/e2e/specs/test_invitations_page.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ describe('Check invitations page', () => {
beforeEach(() => {
cy.visitApp();
cy.login('Boby', 'P@ssw0rd.');
cy.get('.organization-card__manageBtn').click();
cy.get('.organization-card-manageBtn').click();
cy.get('.user-menu__item').eq(2).click();
});

6 changes: 3 additions & 3 deletions client/tests/e2e/specs/test_manage_organization.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ describe('Check manage org page', () => {
beforeEach(() => {
cy.visitApp();
cy.login('Boby', 'P@ssw0rd.');
cy.get('.organization-card__manageBtn').click();
cy.get('.organization-card-manageBtn').click();
});

afterEach(() => {
@@ -13,8 +13,8 @@ describe('Check manage org page', () => {

it('Checks initial status', () => {
cy.get('.back-organization').find('ion-label').contains('Manage my organization');
cy.get('.organization-card__header').should('not.be.visible');
cy.get('.organization-card__manageBtn').should('not.be.visible');
cy.get('.organization-card-header').should('not.be.visible');
cy.get('.organization-card-manageBtn').should('not.be.visible');
cy.get('.sidebar').find('.list-workspaces').should('not.be.visible');
cy.get('.sidebar').find('.users').find('ion-item').first().contains('Users');
cy.get('.sidebar').find('.users').find('ion-item').first().should('have.class', 'item-selected');
2 changes: 1 addition & 1 deletion client/tests/e2e/specs/test_user_details_modal.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ describe('Check user details modal', () => {
beforeEach(() => {
cy.visitApp();
cy.login('Boby', 'P@ssw0rd.');
cy.get('.organization-card__manageBtn').click();
cy.get('.organization-card-manageBtn').click();
});

afterEach(() => {

0 comments on commit dae05f0

Please sign in to comment.