* update UI test structure for reusability * fix Android tests * improve autocomplete test * minor cleanup
18 lines
503 B
JavaScript
18 lines
503 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
class PostOptions {
|
|
testID = {
|
|
postOptions: 'post.options',
|
|
openReactionPicker: 'open.reaction_picker',
|
|
}
|
|
|
|
openReactionPicker = element(by.id(this.testID.openReactionPicker));
|
|
|
|
toBeVisible = async () => {
|
|
await expect(element(by.id(this.testID.postOptions))).toBeVisible();
|
|
}
|
|
}
|
|
|
|
const postOptions = new PostOptions();
|
|
export default postOptions;
|