Add some tweaks to e2e tests to try and resolve flakyness issues (https://github.com/woocommerce/woocommerce-admin/pull/6812)

This commit is contained in:
Sam Seay 2021-04-16 10:47:21 +12:00 committed by GitHub
parent c31d694c45
commit b13feaeafd
4 changed files with 388 additions and 13 deletions

View File

@ -62,6 +62,7 @@
"config": "^3.2.4",
"eslint": "6.7.2",
"jest": "^24.9.0",
"prettier": "npm:wp-prettier@1.19.1",
"puppeteer": "^2.0.0"
},
"dependencies": {
@ -134,6 +135,11 @@
}
}
}
},
"prettier": {
"version": "npm:wp-prettier@1.19.1",
"resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-1.19.1.tgz",
"integrity": "sha512-mqAC2r1NDmRjG+z3KCJ/i61tycKlmADIjxnDhQab+KBxSAGbF/W7/zwB2guy/ypIeKrrftNsIYkNZZQKf3vJcg=="
}
}
},
@ -1370,6 +1376,24 @@
"regenerator-runtime": "^0.13.4"
}
},
"@babel/runtime-corejs2": {
"version": "7.10.5",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.10.5.tgz",
"integrity": "sha512-LJwyb1ac//Jr2zrGTTaNJhrP1wYCgVw9rzHbQPogKXCTLQ60EEWgeNtuqs6cLsq64O557SYzziCrOxNp0rRi8w==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.4"
},
"dependencies": {
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
}
}
},
"@babel/runtime-corejs3": {
"version": "7.13.10",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.13.10.tgz",
@ -9140,6 +9164,185 @@
"react-transition-group": "4.4.1"
},
"dependencies": {
"@woocommerce/csv-export": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/@woocommerce/csv-export/-/csv-export-1.3.0.tgz",
"integrity": "sha512-++JfLjhmK+B++5ogy1f0OB2lLoqDSY0lZ2oKc/b3S7BvYQWcRP5N1u5D+AYcoQMUWJLI+EH52Bkp+ivwVeUAJQ==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.10.5",
"browser-filesaver": "1.1.1",
"moment": "2.27.0"
},
"dependencies": {
"moment": {
"version": "2.27.0",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz",
"integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==",
"dev": true
}
}
},
"@woocommerce/currency": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/@woocommerce/currency/-/currency-3.0.0.tgz",
"integrity": "sha512-uNck3JUgGo1RGoWJ/3qm1mhpikNAeTtVCgR0qb3/jti5Mm7pTM6WInGqQV8uP63PMDlPq2dnuhbvmXEER04jBQ==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.10.5",
"@woocommerce/number": "2.0.0",
"@wordpress/deprecated": "^2.9.0"
}
},
"@woocommerce/data": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@woocommerce/data/-/data-1.1.1.tgz",
"integrity": "sha512-grmCllxDV/0PB8Mc+w9TQFJkAzO/yjjdDmaOzNk2ICuoz2ZhUGiFXnvZmWLyZr9BDtoYK+/jBIsM2ezr34b3ww==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.11.2"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.11.2",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.11.2.tgz",
"integrity": "sha512-AC/ciV28adSSpEkBglONBWq4/Lvm6GAZuxIoyVtsnUpZMl0bxLtoChEnYAkP+47KyOCayZanojtflUEUJtR/6Q==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.4"
}
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
}
}
},
"@woocommerce/date": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/date/-/date-2.1.0.tgz",
"integrity": "sha512-gZutoGaeKtalq5DQFc1751CyyMDIDVahfp+f2NAuafeWC8q/5KjqjdAPFDl3qSQGe+yZmdYiQHSwMPFOjfzSEg==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.10.5",
"@wordpress/date": "3.9.0",
"@wordpress/i18n": "3.11.0",
"lodash": "4.17.15",
"moment": "2.27.0"
},
"dependencies": {
"@wordpress/date": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/@wordpress/date/-/date-3.9.0.tgz",
"integrity": "sha512-V4+k6Ipkm/JX1TzRcwo96v0Lk1m1NGAHwO9JsnUCCXlG1Qxgl+MxRkWpgmUwgdCDjVvevS/4bU+LvndDWQIzVA==",
"dev": true,
"requires": {
"@babel/runtime": "^7.9.2",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16"
}
},
"@wordpress/i18n": {
"version": "3.11.0",
"resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-3.11.0.tgz",
"integrity": "sha512-wcu8NBxaSu8b4Bj+Nt4dMQvziQrfdgTeEGSRy9GzJChTVpFdyZT88zAaPbK+W8yqFaX3zMSf4rHpZSP6QvWkQg==",
"dev": true,
"requires": {
"@babel/runtime": "^7.9.2",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.15",
"memize": "^1.1.0",
"sprintf-js": "^1.1.1",
"tannin": "^1.2.0"
}
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"dev": true
},
"moment": {
"version": "2.27.0",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz",
"integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==",
"dev": true
}
}
},
"@woocommerce/navigation": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@woocommerce/navigation/-/navigation-5.2.0.tgz",
"integrity": "sha512-tDtDZjqqw5LtSqHhx3PDGx/kt4l45qzRNJ0sZZwJMbM/If2Y8WfRr7ceXVGuuypH0vLC7T9TGHnEcMK1iXKXqw==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.12.5",
"history": "4.10.1",
"lodash": "4.17.15",
"qs": "6.9.4"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.12.5",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.12.5.tgz",
"integrity": "sha512-kt5YpZ7F5A05LOgQuaMXXmcxakK/qttf5C/E1BJPA3Kf5PanbjPzDoXN+PIslUnjUxpuKblCsXyP0QfMiqyKqA==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.4"
}
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"dev": true
},
"qs": {
"version": "6.9.4",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
"integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==",
"dev": true
}
}
},
"@woocommerce/number": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@woocommerce/number/-/number-2.0.0.tgz",
"integrity": "sha512-/YFkF0wwYmF0M58wPVrTtFopVwqdsmMAcrgQGnUFIj3JwXQumKR1co99DhDkjJm9vDMYXFTniwKqwvhBxdviSw==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.7.4",
"locutus": "2.0.11"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.7.4",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.7.4.tgz",
"integrity": "sha512-hKNcmHQbBSJFnZ82ewYtWDZ3fXkP/l1XcfRtm7c8gHPM/DMecJtFFBEp7KMLZTuHwwb7RfemHdsEnd7L916Z6A==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.2"
}
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
}
}
},
"@wordpress/api-fetch": {
"version": "3.23.0",
"resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-3.23.0.tgz",
@ -9305,6 +9508,15 @@
"lodash": "^4.17.19"
}
},
"locutus": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/locutus/-/locutus-2.0.11.tgz",
"integrity": "sha512-C0q1L38lK5q1t+wE0KY21/9szrBHxye6o2z5EJzU+5B79tubNOC+nLAEzTTn1vPUGoUuehKh8kYKqiVUTWRyaQ==",
"dev": true,
"requires": {
"es6-promise": "^4.2.5"
}
},
"uuid": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",
@ -9327,6 +9539,45 @@
"requires": {
"@wordpress/deprecated": "^2.9.0",
"@wordpress/html-entities": "2.10.0"
},
"dependencies": {
"@woocommerce/number": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/number/-/number-2.1.0.tgz",
"integrity": "sha512-3junwiGMZ9u096EqYkeAJQlEstQl1TW79hENJLNwxYBvIGkmby5oF8AOIT81+/mwphKuszUL9fNcY22RTCbA4w==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.10.5",
"locutus": "2.0.11"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.10.5",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.10.5.tgz",
"integrity": "sha512-LJwyb1ac//Jr2zrGTTaNJhrP1wYCgVw9rzHbQPogKXCTLQ60EEWgeNtuqs6cLsq64O557SYzziCrOxNp0rRi8w==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.4"
}
}
}
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
},
"locutus": {
"version": "2.0.11",
"resolved": "https://registry.npmjs.org/locutus/-/locutus-2.0.11.tgz",
"integrity": "sha512-C0q1L38lK5q1t+wE0KY21/9szrBHxye6o2z5EJzU+5B79tubNOC+nLAEzTTn1vPUGoUuehKh8kYKqiVUTWRyaQ==",
"dev": true,
"requires": {
"es6-promise": "^4.2.5"
}
}
}
},
"@woocommerce/customer-effort-score": {
@ -9411,6 +9662,94 @@
"dev": true,
"requires": {
"rememo": "^3.0.0"
},
"dependencies": {
"@woocommerce/date": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@woocommerce/date/-/date-2.1.0.tgz",
"integrity": "sha512-gZutoGaeKtalq5DQFc1751CyyMDIDVahfp+f2NAuafeWC8q/5KjqjdAPFDl3qSQGe+yZmdYiQHSwMPFOjfzSEg==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.10.5",
"@wordpress/date": "3.9.0",
"@wordpress/i18n": "3.11.0",
"lodash": "4.17.15",
"moment": "2.27.0"
}
},
"@woocommerce/navigation": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@woocommerce/navigation/-/navigation-5.2.0.tgz",
"integrity": "sha512-tDtDZjqqw5LtSqHhx3PDGx/kt4l45qzRNJ0sZZwJMbM/If2Y8WfRr7ceXVGuuypH0vLC7T9TGHnEcMK1iXKXqw==",
"dev": true,
"requires": {
"@babel/runtime-corejs2": "7.12.5",
"history": "4.10.1",
"lodash": "4.17.15",
"qs": "6.9.4"
},
"dependencies": {
"@babel/runtime-corejs2": {
"version": "7.12.5",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.12.5.tgz",
"integrity": "sha512-kt5YpZ7F5A05LOgQuaMXXmcxakK/qttf5C/E1BJPA3Kf5PanbjPzDoXN+PIslUnjUxpuKblCsXyP0QfMiqyKqA==",
"dev": true,
"requires": {
"core-js": "^2.6.5",
"regenerator-runtime": "^0.13.4"
}
}
}
},
"@wordpress/date": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/@wordpress/date/-/date-3.9.0.tgz",
"integrity": "sha512-V4+k6Ipkm/JX1TzRcwo96v0Lk1m1NGAHwO9JsnUCCXlG1Qxgl+MxRkWpgmUwgdCDjVvevS/4bU+LvndDWQIzVA==",
"dev": true,
"requires": {
"@babel/runtime": "^7.9.2",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16"
}
},
"@wordpress/i18n": {
"version": "3.11.0",
"resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-3.11.0.tgz",
"integrity": "sha512-wcu8NBxaSu8b4Bj+Nt4dMQvziQrfdgTeEGSRy9GzJChTVpFdyZT88zAaPbK+W8yqFaX3zMSf4rHpZSP6QvWkQg==",
"dev": true,
"requires": {
"@babel/runtime": "^7.9.2",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.15",
"memize": "^1.1.0",
"sprintf-js": "^1.1.1",
"tannin": "^1.2.0"
}
},
"core-js": {
"version": "2.6.12",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
"integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
"dev": true
},
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
"dev": true
},
"moment": {
"version": "2.27.0",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.27.0.tgz",
"integrity": "sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ==",
"dev": true
},
"qs": {
"version": "6.9.4",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz",
"integrity": "sha512-A1kFqHekCTM7cz0udomYUoYNWjBebHm/5wzU/XqrBRBNWectVH0QIiN+NEcZ0Dte5hvzHwbr8+XQmguPhJ6WdQ==",
"dev": true
}
}
},
"@woocommerce/date": {
@ -9420,6 +9759,13 @@
"@wordpress/date": "3.13.0",
"@wordpress/i18n": "3.17.0",
"moment": "2.29.1"
},
"dependencies": {
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
}
}
},
"@woocommerce/dependency-extraction-webpack-plugin": {
@ -10440,6 +10786,13 @@
"@woocommerce/experimental": "file:packages/experimental",
"history": "4.10.1",
"qs": "6.9.6"
},
"dependencies": {
"lodash": {
"version": "4.17.15",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
"integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
}
}
},
"@woocommerce/notices": {
@ -10456,6 +10809,17 @@
"dev": true,
"requires": {
"locutus": "2.0.14"
},
"dependencies": {
"locutus": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/locutus/-/locutus-2.0.14.tgz",
"integrity": "sha512-0H1o1iHNEp3kJ5rW57bT/CAP5g6Qm0Zd817Wcx2+rOMTYyIJoc482Ja1v9dB6IUjwvWKcBNdYi7x2lRXtlJ3bA==",
"dev": true,
"requires": {
"es6-promise": "^4.2.5"
}
}
}
},
"@woocommerce/tracks": {
@ -15298,6 +15662,15 @@
"integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==",
"optional": true
},
"bindings": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
"optional": true,
"requires": {
"file-uri-to-path": "1.0.0"
}
},
"bl": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
@ -21141,6 +21514,12 @@
}
}
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"optional": true
},
"filelist": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz",
@ -26658,6 +27037,7 @@
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"optional": true,
"requires": {
"bindings": "^1.5.0",
"nan": "^2.12.1"
}
}
@ -27826,15 +28206,6 @@
"path-exists": "^3.0.0"
}
},
"locutus": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/locutus/-/locutus-2.0.14.tgz",
"integrity": "sha512-0H1o1iHNEp3kJ5rW57bT/CAP5g6Qm0Zd817Wcx2+rOMTYyIJoc482Ja1v9dB6IUjwvWKcBNdYi7x2lRXtlJ3bA==",
"dev": true,
"requires": {
"es6-promise": "^4.2.5"
}
},
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
@ -39017,6 +39388,7 @@
"dev": true,
"optional": true,
"requires": {
"bindings": "^1.5.0",
"nan": "^2.12.1"
}
}

View File

@ -93,7 +93,7 @@
"@automattic/explat-client": "0.0.1",
"@automattic/explat-client-react-helpers": "0.0.1",
"@woocommerce/e2e-environment": "0.2.1",
"@woocommerce/e2e-utils": "0.1.2",
"@woocommerce/e2e-utils": "0.1.4",
"@wordpress/api-fetch": "2.2.8",
"@wordpress/base-styles": "3.3.0",
"@wordpress/components": "11.1.3",

View File

@ -128,6 +128,7 @@ export abstract class BasePage {
try {
await this.page.goto( fullUrl, {
waitUntil: 'networkidle0',
timeout: 10000,
} );
} catch ( e ) {
throw new Error(

View File

@ -11,8 +11,6 @@ export class Login extends BasePage {
await this.navigate();
await getElementByText( 'label', 'Username or Email Address' );
await expect( this.page.title() ).resolves.toMatch( 'Log In' );
await clearAndFillInput( '#user_login', ' ' );
await this.page.type(
@ -26,7 +24,10 @@ export class Login extends BasePage {
await Promise.all( [
this.page.click( 'input[type=submit]' ),
this.page.waitForNavigation( { waitUntil: 'networkidle0' } ),
this.page.waitForNavigation( {
waitUntil: 'networkidle0',
timeout: 10000,
} ),
] );
}
@ -42,6 +43,7 @@ export class Login extends BasePage {
await page.goto( logoutLinks[ 0 ], {
waitUntil: 'networkidle0',
timeout: 10000,
} );
}
}