Skip to content

Commit

Permalink
test: adjust locators
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Dec 9, 2024
1 parent 0b5c1bb commit d171b02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/meteor/client/sidebar/header/CreateChannelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ const CreateChannelModal = ({ teamId = '', onClose, reload }: CreateChannelModal
disabled={e2eDisabled || federated}
onChange={onChange}
aria-describedby={`${encryptedId}-hint`}
aria-labelledby='Encrypted_channel_Label'
/>
)}
/>
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/channel-management.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ test.describe.serial('channel-management', () => {
targetChannel = hugeName;

await page.setViewportSize({ width: 640, height: 460 });
await expect(page.getByRole('heading', { name: hugeName })).toHaveCSS('width', '427px');
await expect(page.getByRole('heading', { name: hugeName })).toHaveCSS('width', '417px');
});

test('should open sidebar clicking on sidebar toggler', async ({ page }) => {
Expand Down
3 changes: 3 additions & 0 deletions apps/meteor/tests/e2e/page-objects/fragments/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ export class Sidebar {
async createEncryptedChannel(name: string) {
await this.openCreateNewByLabel('Channel');
await this.createRoomModal.inputChannelName.fill(name);
await this.createRoomModal.advancedSettingsAccordion.click();
await this.createRoomModal.checkboxEncryption.click();
await this.createRoomModal.btnCreate.click();
}

async createPublicChannel(name: string) {
Expand Down

0 comments on commit d171b02

Please sign in to comment.