1 parent
e37d583179
commit
5260c2828b
65 files changed
+8469
-380
No files matched your search
@@ -29,7 +29,7 @@ fs.mkdirSync('test-results',{recursive:true});
|
||||
await page.getByLabel('Username',{exact:true}).fill('configuration-'+unique);
|
||||
await page.getByLabel('Display name',{exact:true}).fill('Configuration tester');
|
||||
await page.getByLabel('Password',{exact:true}).fill('local-browser-test-password');
|
||||
await page.getByRole('button',{name:'Create account',exact:true}).click();
|
||||
await page.getByLabel('Email address',{exact:true}).fill('browser-'+Date.now()+'-'+Math.random().toString(16).slice(2)+'@example.com');await page.getByRole('button',{name:'Create account',exact:true}).click();
|
||||
await page.getByRole('button',{name:'New workspace',exact:true}).click();
|
||||
await dialog().getByLabel('Name',{exact:true}).fill('Configuration '+unique);await save();
|
||||
await page.getByRole('button',{name:'New workspace',exact:true}).click();
|
||||
@@ -70,8 +70,15 @@ fs.mkdirSync('test-results',{recursive:true});
|
||||
await order(['Third','First','Second']);
|
||||
await page.getByRole('button',{name:'Move Third down',exact:true}).click();await order(['First','Third','Second']);
|
||||
await route('Second').getByRole('button',{name:'Edit',exact:true}).click();
|
||||
await dialog().getByLabel('Field',{exact:true}).selectOption('priority');
|
||||
await dialog().getByLabel('Operation',{exact:true}).selectOption('less-than');
|
||||
await dialog().getByLabel('Value',{exact:true}).fill('P3');
|
||||
await dialog().getByRole('checkbox',{name:'Not',exact:true}).check();
|
||||
|
||||
await page.screenshot({path:'test-results/routing-priority.png',fullPage:true});
|
||||
assert.equal(await dialog().getByLabel('Position',{exact:true}).inputValue(),'3');
|
||||
await dialog().getByLabel('Position',{exact:true}).selectOption('1');await save();await order(['Second','First','Third']);
|
||||
assert.deepEqual((await state()).document.routes.find(r=>r.name==='Second').conditions,[{field:'priority',operation:'less-than',value:'P3',negate:true}]);
|
||||
await page.getByRole('button',{name:'+ Routing rule',exact:true}).click();
|
||||
await dialog().getByLabel('Rule name',{exact:true}).fill('Fourth');
|
||||
await dialog().getByLabel('Position',{exact:true}).selectOption('2');await save();await order(['Second','Fourth','First','Third']);
|
||||
|
||||
Reference in new issue
Block a user