-
Notifications
You must be signed in to change notification settings - Fork 301
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
Development
: Fix course messages e2e tests
#9536
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,16 @@ export class CourseMessagesPage { | |
* Clicks the button to initiate channel creation. | ||
*/ | ||
async createChannelButton() { | ||
await this.page.locator('#plusButton-generalChannels').click(); | ||
await this.page.locator('.modal-content #createChannel').click(); | ||
await this.page.click('.square-button > .ng-fa-icon'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As I see it, all three buttons (create channel, browse channels, create group chat) are under the same menu and can be accessed via the same button. Why do you use |
||
await this.page.click('text=Create channel'); | ||
} | ||
|
||
/** | ||
* Navigates to the channel overview section. | ||
*/ | ||
browseChannelsButton(channelGroup: string) { | ||
return this.page.locator(`#plusButton-${channelGroup}`); | ||
async browseChannelsButton() { | ||
await this.page.locator('.btn-primary.btn-sm.square-button').click(); | ||
await this.page.locator('button', { hasText: 'Browse Channels' }).click(); | ||
Comment on lines
-28
to
+30
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method name is not super intuitive to me - I'd expect the method to return a locator to the browse button (like it did in the old implementation). Could we rename it to |
||
} | ||
|
||
/** | ||
|
@@ -288,7 +289,8 @@ export class CourseMessagesPage { | |
* Clicks the button to initiate group chat creation. | ||
*/ | ||
async createGroupChatButton() { | ||
await this.page.locator('#plusButton-groupChats').click(); | ||
await this.page.locator('.btn-primary.btn-sm.square-button').click(); | ||
await this.page.locator('button', { hasText: 'Create Group Chat' }).click(); | ||
Comment on lines
291
to
+293
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
} | ||
|
||
/** | ||
|
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.
I'd suggest the name
openChannelCreation
here