Browse Source

test(e2e): update e2e test to use new emotion css selectors

feat/auto-update
jamaljsr 5 years ago
parent
commit
f220eddded
  1. 5
      .lintstagedrc
  2. 2
      e2e/pages/App.ts
  3. 4
      e2e/pages/NetworkView.ts

5
.lintstagedrc

@ -8,10 +8,5 @@
"prettier --parser json --write",
"git add"
],
"*.less": [
"stylelint --syntax scss --fix",
"prettier --single-quote --write",
"git add"
],
"*.{yml,md}": ["prettier --single-quote --write", "git add"]
}

2
e2e/pages/App.ts

@ -1,7 +1,7 @@
import { Selector } from 'testcafe';
class App {
logoLink = Selector('[class^=logo__] a');
logoLink = Selector('[class*="x-Header "] [class*="x-Logo "] a');
hamburgerMenu = Selector('[data-icon=menu]');
createNetworkItem = Selector('.ant-dropdown-menu-item').withExactText('Create Network');

4
e2e/pages/NetworkView.ts

@ -2,8 +2,8 @@ import { Selector } from 'testcafe';
class NetworkView {
backButton = Selector('.ant-page-header-back-button');
lndNodes = Selector('[class^=node__]').withText('lnd');
bitcoindNodes = Selector('[class^=node__]').withText('bitcoind');
lndNodes = Selector('[class*="x-Node "]').withText('lnd');
bitcoindNodes = Selector('[class*="x-Node "]').withText('bitcoind');
getLndNodeCount = () => this.lndNodes.count;
getBitcoindNodeCount = () => this.bitcoindNodes.count;

Loading…
Cancel
Save