Skip to content

Commit ecb7685

Browse files
committed
OO generic anon tests
1 parent 3b360c8 commit ecb7685

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

e2e-tests/genericfile_po.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const { url } = require('../fixture');
66
const { FileActions } = require('./fileactions.js');
77

8-
exports.docTypes = ['pad', 'sheet', 'code', 'slide', 'kanban', 'whiteboard', 'form', 'diagram'];
8+
exports.docTypes = ['pad', 'sheet', 'code', 'slide', 'kanban', 'whiteboard', 'form', 'diagram', 'presentation', 'doc'];
99

1010
/**
1111
* A page object for a CryptPad file.
@@ -138,13 +138,26 @@ class NewFileModal {
138138
}
139139

140140
iconLocator (fileType) {
141-
return this
141+
if (fileType !== 'doc') {
142+
return this
142143
.filePage
143144
.mainFrame
144145
.getByText(
145146
this.iconName(fileType),
146147
{ exact: true }
147148
);
149+
150+
} else {
151+
return this
152+
.filePage
153+
.mainFrame
154+
.getByText(
155+
this.iconName('document'),
156+
{ exact: true }
157+
);
158+
159+
}
160+
148161
}
149162

150163
iconName (fileType) {

0 commit comments

Comments
 (0)