Skip to content

Commit

Permalink
test(network): update e2e tests after sidebar changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Sep 2, 2019
1 parent 0ab4798 commit 1a73671
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/Network.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { App, NetworkView, NewNetwork } from './pages';

fixture`Network`
.page(pageUrl)
.beforeEach(App.clickNewNetworkBtn)
.beforeEach(App.clickNewNetworkIcon)
.afterEach(assertNoConsoleErrors)
.afterEach(cleanup);

Expand Down
4 changes: 2 additions & 2 deletions e2e/pages/App.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Selector } from 'testcafe';

class App {
newNetworkBtn = Selector('[data-tid=create-btn]');
newNetworkIcon = Selector('[data-tid=create-icon]');
firstNetworkMenu = Selector('[data-tid=network-1]');

getFirstNetworkText = () => this.firstNetworkMenu.innerText;
clickNewNetworkBtn = async (t: TestController) => t.click(this.newNetworkBtn);
clickNewNetworkIcon = async (t: TestController) => t.click(this.newNetworkIcon);
}

export default new App();

0 comments on commit 1a73671

Please sign in to comment.