Skip to content

Commit

Permalink
tests: fixed e2e test for new timeline inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 5, 2024
1 parent fbc7e50 commit 2ccd3c1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/e2e/screenshot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ test.clientScripts({

fixture(`Timeline view`).page(`${baseURL}/#/timeline`).requestHooks(HTTPLogger);

const durationSelect = Selector('select#duration');
const durationOption = durationSelect.find('option');

test.clientScripts({
content: logJsErrorCode,
})('Screenshot the timeline view', async t => {
Expand All @@ -134,10 +131,9 @@ test.clientScripts({
});
await waitForLoading(t);
await t
.click(durationSelect)
.click(durationOption.withText('12h'))
.expect(durationSelect.value)
.eql('43200');
.click(Selector('label').withText('12h'))
.expect(Selector('input[value="43200"]').checked)
.eql(true);

await t.takeScreenshot({
path: 'timeline.png',
Expand Down

1 comment on commit 2ccd3c1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b18 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b18 (click to expand)

Please sign in to comment.