mattermost-mobile/detox/e2e/support/ui/screen/table.js
Joseph Baylon 4270148f7d
MM-35671 Detox/E2E: Add e2e for markdown table, separator, and block quote (#5399)
* MM-35671 Detox/E2E: Add e2e for markdown table, separator, and block quote

* Revert podfile

* Fix markdown block quote comment
2021-05-24 07:20:49 -07:00

28 lines
787 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
class TableScreen {
testID = {
tableScreen: 'table.screen',
tableScrollView: 'table.scroll_view',
backButton: 'screen.back.button',
}
tableScreen = element(by.id(this.testID.tableScreen));
tableScrollView = element(by.id(this.testID.tableScrollView));
backButton = element(by.id(this.testID.backButton));
toBeVisible = async () => {
await expect(this.tableScreen).toBeVisible();
return this.tableScreen;
}
back = async () => {
await this.backButton.tap();
await expect(this.tableScreen).not.toBeVisible();
}
}
const tableScreen = new TableScreen();
export default tableScreen;