Completed
Push — master ( 6d8164...bf7249 )
by Roy
03:26
created

tests/e2e/lib/customer-flow.js   A

Size

Lines of Code 19

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
nc 1
dl 0
loc 19
rs 10
c 1
b 0
f 0
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A customer-flow.js ➔ ??? 0 3 1
1
/**
2
 * External dependencies
3
 */
4
import { CustomerFlow as Base } from 'wc-e2e-page-objects';
5
6
/**
7
 * Internal dependencies
8
 */
9
import CheckoutPage from './checkout-page.js';
10
11
export default class CustomerFlow extends Base {
12
	constructor( driver, args = {} ) {
13
		super( driver, args );
14
	}
15
16
	openCheckout() {
17
		return this.open( {
18
			object: CheckoutPage,
19
			path: '/checkout'
20
		} );
21
	}
22
}
23