Skip to content

Commit

Permalink
feat: add playwirght config
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfuboy committed Aug 22, 2022
1 parent 198c65e commit 6d0fb52
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
81 changes: 80 additions & 1 deletion e2e/env.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,85 @@
::: env_manage {

find: (<)
[select 'Environment'] = sel

sel -> 'Mangage Environment'

find: (<)
[icon] [label 'New'] = newLabel

newLabel -> click
}

::: modal_layout {
find:
[input] = envName
[input] = host
[input] = name [input] = value [input] = desc [icon]
[button 'Save'] = save
}

::: add_data {
name -> '{$1}'
value -> '{$2}'
desc -> '{$3}'
}

=== Env

--- show modal & new & change & delete
--- add case

goto 'http://localhost:4200'

--- env_manage

--- modal_layout

envName -> 'myEnv'
host -> 'https://youtube.com'

--- add_data :a:b:c

save -> click

find: (<)
[label 'myEnv']

find: (<)
[select 'Environment'] = sel

sel -> 'myEnv'

find:
[label 'myEnv'] [input]



--- del case

goto 'http://localhost:4200'

--- env_manage

--- modal_layout

envName -> 'myEnv'
host -> 'https://youtube.com'

--- add_data :a:b:c

save -> click
sel -> hover

find:
[label 'myEnv'] [icon] = del_icon
icon -> click

find:
[label 'Cancel'] [label 'OK']=OK
ok -> click

find: (!)
[label 'myEnv']


5 changes: 5 additions & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const config = {
testDir: './e2e',
};

module.exports = config;

0 comments on commit 6d0fb52

Please sign in to comment.